Commit bcde44fb authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

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.
parent ae473236
...@@ -1118,9 +1118,11 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif ...@@ -1118,9 +1118,11 @@ static inline NSUInteger adjusted_modifiers_for_option_behavior(NSUInteger modif
if (![self isMiniaturized]) if (![self isMiniaturized])
{ {
BOOL needAdjustWindowLevels = FALSE; BOOL needAdjustWindowLevels = FALSE;
BOOL wasVisible = [self isVisible]; BOOL wasVisible;
[controller transformProcessToForeground]; [controller transformProcessToForeground];
[NSApp unhide:nil];
wasVisible = [self isVisible];
if (activate) if (activate)
[NSApp activateIgnoringOtherApps:YES]; [NSApp activateIgnoringOtherApps:YES];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment