Ken Thomases : winemac: Ignore window frame changes while minimized but check again when unminimized .
Module: wine Branch: master Commit: a6dc4906de8caa187deb38bd0e044e5aab442ce5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6dc4906de8caa187deb38bd0e... Author: Ken Thomases <ken(a)codeweavers.com> Date: Tue Jun 4 04:59:54 2013 -0500 winemac: Ignore window frame changes while minimized but check again when unminimized. --- dlls/winemac.drv/cocoa_window.m | 2 ++ dlls/winemac.drv/window.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 6fbd0db..9d8984c 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -1229,6 +1229,8 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers) causing_becomeKeyWindow = FALSE; [controller windowGotFocus:self]; } + + [self windowDidResize:notification]; } - (void) windowDidEndLiveResize:(NSNotification *)notification diff --git a/dlls/winemac.drv/window.c b/dlls/winemac.drv/window.c index a04f1e2..7e0c60e 100644 --- a/dlls/winemac.drv/window.c +++ b/dlls/winemac.drv/window.c @@ -1500,7 +1500,7 @@ void macdrv_window_frame_changed(HWND hwnd, CGRect frame) if (!hwnd) return; if (!(data = get_win_data(hwnd))) return; - if (!data->on_screen) + if (!data->on_screen || data->minimized) { release_win_data(data); return;
participants (1)
-
Alexandre Julliard