From 28a0dc0fb9871b9a34868bb2da8d05de5340feec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andri=20Pa=CC=81lsson?= Date: Sun, 6 Oct 2013 17:03:07 +0200 Subject: [PATCH] OSX set cursor position not working in fullscreen mode The cursor position was not set because the fullscreen window was not considered to be in focus. --- src/cocoa_window.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index 486cddfd..1f92d46e 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -60,6 +60,8 @@ static void enterFullscreenMode(_GLFWwindow* window) [window->ns.view enterFullScreenMode:window->monitor->ns.screen withOptions:nil]; + + _glfwInputWindowFocus(window, GL_TRUE); } // Leave fullscreen mode