mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
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:
parent
ae47323604
commit
bcde44fb8a
1 changed files with 3 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue