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.
This commit is contained in:
Ken Thomases 2013-12-31 01:05:13 -06:00 committed by Alexandre Julliard
parent ae47323604
commit bcde44fb8a

View file

@ -1118,9 +1118,11 @@ - (void) orderBelow:(WineWindow*)prev orAbove:(WineWindow*)next activate:(BOOL)a
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];