From eb466a0e0bca92cd8697be54041418e6f8516485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilla=20L=C3=B6wy?= Date: Thu, 6 Jun 2019 16:02:41 +0200 Subject: [PATCH] Cocoa: Cleanup This makes the Cocoa _glfwPlatformSetWindowMonitor consistent with its X11 and Win32 counterparts. (cherry picked from commit 3262c29440428348e33b746c4783d783b2825228) --- src/cocoa_window.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index cdb54409..f9383b3e 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -1221,7 +1221,7 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window, // HACK: Changing the style mask can cause the first responder to be cleared [window->ns.object makeFirstResponder:window->ns.view]; - if (monitor) + if (window->monitor) { [window->ns.object setLevel:NSMainMenuWindowLevel + 1]; [window->ns.object setHasShadow:NO];