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.
This commit is contained in:
Andri Pálsson 2013-10-08 22:33:19 +02:00
parent 6a26ef0920
commit 3e1b931033

View File

@ -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