From 4af5d5bd99737345a1a6452da1e8fefe909f8bc6 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Thu, 12 Mar 2015 18:44:44 -0500 Subject: [PATCH] winemac: When exiting Cocoa full-screen mode for a no-longer-eligible window, bypass the override of -toggleFullScreen:. The override checks the disabled state of the window, but that's for user- driven changes, not programmatic changes. --- 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 a937d5d5d43..8a02ff4e9f6 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -709,7 +709,7 @@ - (void) adjustFullScreenBehavior:(NSWindowCollectionBehavior)behavior behavior &= ~NSWindowCollectionBehaviorFullScreenPrimary; behavior |= NSWindowCollectionBehaviorFullScreenAuxiliary; if (style & NSFullScreenWindowMask) - [self toggleFullScreen:nil]; + [super toggleFullScreen:nil]; } }