Ken Thomases : winemac: Explicitly unhide the app early when showing windows.
Module: wine Branch: master Commit: bcde44fb8a34a9fc9bab60a8ff90700f07b0d6c4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bcde44fb8a34a9fc9bab60a8ff... Author: Ken Thomases <ken(a)codeweavers.com> Date: Tue Dec 31 01:05:13 2013 -0600 winemac: Explicitly unhide the app early when showing windows. Cocoa would implictly unhide it when we order a window, anyway. Doing it early avoids problems from querying -[NSWindow isVisible] while the app is hidden. That method returns FALSE even for windows which would be visible if the app weren't hidden. --- dlls/winemac.drv/cocoa_window.m | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index a025d59..07abbca 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -1118,9 +1118,11 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif if (![self isMiniaturized]) { BOOL needAdjustWindowLevels = FALSE; - BOOL wasVisible = [self isVisible]; + BOOL wasVisible; [controller transformProcessToForeground]; + [NSApp unhide:nil]; + wasVisible = [self isVisible]; if (activate) [NSApp activateIgnoringOtherApps:YES];
participants (1)
-
Alexandre Julliard