mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 12:12:16 +00:00
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:
parent
6a26ef0920
commit
3e1b931033
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user