winemac: Use the -close method rather than -orderOut: for full-screen windows.

Simply ordering them out leaves the user on the full-screen space, which is now
an empty black screen.  Closing the window closes the space, too.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Ken Thomases 2017-04-24 13:07:14 -05:00 committed by Alexandre Julliard
parent 5ebb83ad4e
commit ff3766c759
1 changed files with 1 additions and 1 deletions

View File

@ -1673,7 +1673,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
[parent grabDockIconSnapshotFromWindow:self force:NO];
[self becameIneligibleParentOrChild];
if ([self isMiniaturized])
if ([self isMiniaturized] || [self styleMask] & NSFullScreenWindowMask)
{
fakingClose = TRUE;
[self close];