From b81a19928d00b9a59a247155961152342ee5b22a Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 2 Dec 2014 23:13:32 +0100 Subject: [PATCH] Fixed auto-hiding of windowed windows on OS X. --- src/cocoa_window.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 1f5bec4a..84c3a331 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -971,7 +971,10 @@ static GLboolean createWindow(_GLFWwindow* window, #endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/ if (wndconfig->monitor) + { [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; + [window->ns.object setHidesOnDeactivate:YES]; + } else { [window->ns.object center]; @@ -984,7 +987,6 @@ static GLboolean createWindow(_GLFWwindow* window, [window->ns.object setContentView:window->ns.view]; [window->ns.object setDelegate:window->ns.delegate]; [window->ns.object setAcceptsMouseMovedEvents:YES]; - [window->ns.object setHidesOnDeactivate:YES]; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_6)