From 3e1b931033b5afd2bfd155df6d5d7f1472ad1dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andri=20Pa=CC=81lsson?= Date: Tue, 8 Oct 2013 22:33:19 +0200 Subject: [PATCH] OSX fix for changing cursor mode from NORMAL to DISABLED If you set the cursor to NORMAL mode and then to DISABLED then the cursor would not get hidden. --- src/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input.c b/src/input.c index 1bd7e6d8..25170d61 100644 --- a/src/input.c +++ b/src/input.c @@ -48,6 +48,8 @@ static void setCursorMode(_GLFWwindow* window, int newMode) oldMode = window->cursorMode; if (oldMode == newMode) return; + + window->cursorMode = newMode; if (window == _glfw.focusedWindow) { @@ -72,7 +74,6 @@ static void setCursorMode(_GLFWwindow* window, int newMode) _glfwPlatformSetCursorMode(window, newMode); } - window->cursorMode = newMode; } // Set sticky keys mode for the specified window