Module: wine Branch: master Commit: 0757a6636013cf5ac3c46164ea7bf0d07769a94e URL: http://source.winehq.org/git/wine.git/?a=commit;h=0757a6636013cf5ac3c46164ea...
Author: Ken Thomases ken@codeweavers.com Date: Mon Feb 4 08:46:00 2013 -0600
winemac: Ignore Cocoa's window frame adjustments for off-screen windows.
---
dlls/winemac.drv/cocoa_window.m | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 38bc176..4d69674 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -265,10 +265,6 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
[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 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers) [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; }