winemac: Ignore Cocoa's window frame adjustments for off-screen windows.
This commit is contained in:
parent
3ab66a6916
commit
0757a66360
|
@ -265,10 +265,6 @@ + (WineWindow*) createWindowWithFeatures:(const struct macdrv_window_features*)w
|
|||
|
||||
[window setContentView:contentView];
|
||||
|
||||
/* In case Cocoa adjusted the frame we tried to set, generate a frame-changed
|
||||
event. The back end will ignore it if nothing actually changed. */
|
||||
[window windowDidResize:nil];
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
|
@ -424,9 +420,12 @@ - (BOOL) setFrameIfOnScreen:(NSRect)contentRect
|
|||
[self setFrame:frame display:YES];
|
||||
}
|
||||
|
||||
/* In case Cocoa adjusted the frame we tried to set, generate a frame-changed
|
||||
event. The back end will ignore it if nothing actually changed. */
|
||||
[self windowDidResize:nil];
|
||||
if (on_screen)
|
||||
{
|
||||
/* In case Cocoa adjusted the frame we tried to set, generate a frame-changed
|
||||
event. The back end will ignore it if nothing actually changed. */
|
||||
[self windowDidResize:nil];
|
||||
}
|
||||
|
||||
return on_screen;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue