winemac: Ignore Cocoa's window frame adjustments for off-screen windows.

This commit is contained in:
Ken Thomases 2013-02-04 08:46:00 -06:00 committed by Alexandre Julliard
parent 3ab66a6916
commit 0757a66360
1 changed files with 6 additions and 7 deletions

View File

@ -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;
}