mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 00:30:57 +00:00
Fix cursor mode application for unfocused windows
Fixes #1239. Fixes #1247.
This commit is contained in:
+1
-3
@@ -509,9 +509,7 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
|
||||
_glfwPlatformGetCursorPos(window,
|
||||
&window->virtualCursorPosX,
|
||||
&window->virtualCursorPosY);
|
||||
|
||||
if (_glfwPlatformWindowFocused(window))
|
||||
_glfwPlatformSetCursorMode(window, value);
|
||||
_glfwPlatformSetCursorMode(window, value);
|
||||
}
|
||||
else if (mode == GLFW_STICKY_KEYS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user