From 841f158d81ab3555f67c24a824df2de618c139ef Mon Sep 17 00:00:00 2001 From: Ken Thomases Date: Tue, 4 Jun 2013 04:59:39 -0500 Subject: [PATCH] winemac: Don't accidentally unminimize a window when trying to change z-order. --- 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 5ee1aacf8a6..2da8a088740 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -708,7 +708,7 @@ - (BOOL) orderBelow:(WineWindow*)prev orAbove:(WineWindow*)next { WineApplicationController* controller = [WineApplicationController sharedController]; BOOL on_screen = frame_intersects_screens([self frame], [NSScreen screens]); - if (on_screen) + if (on_screen && ![self isMiniaturized]) { BOOL needAdjustWindowLevels = FALSE;