Fix cursor mode application for unfocused windows

Fixes #1239.
Fixes #1247.
This commit is contained in:
Camilla Löwy
2018-04-17 19:54:36 +02:00
parent 819a2205e5
commit 50eccd298a
4 changed files with 165 additions and 129 deletions
+1 -3
View File
@@ -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)
{