From fad48773f6f20efdd5d6d167bc20fa589938c816 Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Fri, 30 Aug 2013 00:00:58 -0500 Subject: [PATCH] winemac: A window is ineligible to be a Cocoa parent or child while minimized. --- dlls/winemac.drv/cocoa_window.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m index 512d2ff8b03..b71d31e6563 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -1383,6 +1383,8 @@ - (void)windowDidDeminiaturize:(NSNotification *)notification ignore_windowDeminiaturize = FALSE; + [self becameEligibleParentOrChild]; + if (fullscreen && [self isOnActiveSpace]) [controller updateFullscreenWindows]; [controller adjustWindowLevels]; @@ -1483,6 +1485,8 @@ - (void) windowWillClose:(NSNotification*)notification - (void)windowWillMiniaturize:(NSNotification *)notification { + [self becameIneligibleParentOrChild]; + if (!ignore_windowMiniaturize) { macdrv_event* event;