mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Added initial NSScreen integration.
This (tentatively) fixes the bug of full screen windows on OS X always opening on the primary monitor.
This commit is contained in:
+1
-1
@@ -759,7 +759,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
|
||||
return GL_FALSE;
|
||||
|
||||
_glfwPlatformShowWindow(window);
|
||||
[[window->ns.object contentView] enterFullScreenMode:[NSScreen mainScreen]
|
||||
[[window->ns.object contentView] enterFullScreenMode:wndconfig->monitor->ns.screen
|
||||
withOptions:nil];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user