mac: don't set the xywh of parent windows twice
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
13320dce78
commit
96528ca433
1 changed files with 1 additions and 5 deletions
|
|
@ -141,7 +141,7 @@ static NSPoint pointFlip(NSPoint point) {
|
|||
[c->window makeKeyAndOrderFront:c->application];
|
||||
[c->window retain];
|
||||
|
||||
if (parent != NULL) {
|
||||
if (parent) {
|
||||
MilskoCocoa *p = parent->cocoa.real;
|
||||
double offset = 0;
|
||||
offset = [p->window frameRectForContentRect:[p->window frame]].size.height -
|
||||
|
|
@ -149,10 +149,6 @@ static NSPoint pointFlip(NSPoint point) {
|
|||
[p->window addChildWindow:c->window ordered:NSWindowAbove];
|
||||
[c->window setHasShadow:MwFALSE];
|
||||
[c->window setParentWindow:p->window];
|
||||
|
||||
c->rect.origin.x += [p->window frame].origin.x;
|
||||
c->rect.origin.y -= [p->window frame].origin.y - offset;
|
||||
c->rect.origin.y -= offset;
|
||||
} else {
|
||||
if ([c->application respondsToSelector:@selector(setActivationPolicy:)]) {
|
||||
[c->application
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue