[PATCH 08/10] winemac: Use the -close method rather than -orderOut: for full-screen windows.
Ken Thomases
ken at codeweavers.com
Mon Apr 24 13:07:14 CDT 2017
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 at codeweavers.com>
---
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 @@ - (void) doOrderOut
[parent grabDockIconSnapshotFromWindow:self force:NO];
[self becameIneligibleParentOrChild];
- if ([self isMiniaturized])
+ if ([self isMiniaturized] || [self styleMask] & NSFullScreenWindowMask)
{
fakingClose = TRUE;
[self close];
--
2.10.2
More information about the wine-patches
mailing list