From 34bf1b13e915c50633f78a541034ae628020a836 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 29 Oct 2014 23:13:24 +0100 Subject: [PATCH] Fixed Lion full screen regression. Restored lines lost during testing surgery. --- src/cocoa_window.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 68b7eb99..f38c6c8b 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -955,6 +955,9 @@ static GLboolean createWindow(_GLFWwindow* window, #if defined(_GLFW_USE_RETINA) [window->ns.view setWantsBestResolutionOpenGLSurface:YES]; #endif + + if (wndconfig->resizable) + [window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; } #endif /*MAC_OS_X_VERSION_MAX_ALLOWED*/