Module: wine Branch: master Commit: ff3766c7594128f981daf441990302e54f4a26db URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff3766c7594128f981daf44199...
Author: Ken Thomases ken@codeweavers.com Date: Mon Apr 24 13:07:14 2017 -0500
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
---
dlls/winemac.drv/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 7fa432a..9ca40f9 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -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];