mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
Fix #8398
This commit is contained in:
6
glfw/input.c
vendored
6
glfw/input.c
vendored
@@ -728,10 +728,10 @@ GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value)
|
||||
|
||||
window->cursorMode = value;
|
||||
|
||||
_glfwPlatformGetCursorPos(window,
|
||||
&window->virtualCursorPosX,
|
||||
&window->virtualCursorPosY);
|
||||
double x, y;
|
||||
_glfwPlatformGetCursorPos(window, &x, &y);
|
||||
_glfwPlatformSetCursorMode(window, value);
|
||||
_glfwInputCursorPos(window, x, y);
|
||||
}
|
||||
else if (mode == GLFW_STICKY_KEYS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user