diff --git a/glfw/input.c b/glfw/input.c index e78a8c126..0a1b1f0f8 100644 --- a/glfw/input.c +++ b/glfw/input.c @@ -620,7 +620,9 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) &window->virtualCursorPosX, &window->virtualCursorPosY); +#ifdef __APPLE__ if (_glfwPlatformWindowFocused(window)) +#endif _glfwPlatformSetCursorMode(window, value); } else if (mode == GLFW_STICKY_KEYS)