Update glfw from upstream

Proper cross-platform fix for issue of mouse cursor not being restored
over un-focused windows.
This commit is contained in:
Kovid Goyal
2018-04-26 08:31:52 +05:30
parent 84ab0f5062
commit 238508fc0a
10 changed files with 241 additions and 193 deletions

6
glfw/input.c vendored
View File

@@ -619,11 +619,7 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
_glfwPlatformGetCursorPos(window,
&window->virtualCursorPosX,
&window->virtualCursorPosY);
#ifdef __APPLE__
if (_glfwPlatformWindowFocused(window))
#endif
_glfwPlatformSetCursorMode(window, value);
_glfwPlatformSetCursorMode(window, value);
}
else if (mode == GLFW_STICKY_KEYS)
{