Cocoa: Cleanup
This makes the Cocoa _glfwPlatformSetWindowMonitor consistent with its X11 and Win32 counterparts. From upstream: https://github.com/glfw/glfw/commit/3262c29440428348e33b746c4783d783b2825228
This commit is contained in:
+1
-1
@@ -1723,7 +1723,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];
|
||||
|
||||
Reference in New Issue
Block a user