Wayland: Control key repeat via timerfd state

The key repeat logic is now controlled only via the key repeat timerfd.
This commit is contained in:
Camilla Löwy
2021-12-27 00:52:24 +01:00
parent 79e7e65c9d
commit 850893a39f
2 changed files with 9 additions and 12 deletions
+3 -3
View File
@@ -504,12 +504,12 @@ static void keyboardHandleLeave(void* data,
if (!window)
return;
struct itimerspec timer = {};
timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL);
_glfw.wl.serial = serial;
_glfw.wl.keyboardFocus = NULL;
_glfwInputWindowFocus(window, GLFW_FALSE);
struct itimerspec timer = {};
timerfd_settime(_glfw.wl.timerfd, 0, &timer, NULL);
}
static int toGLFWKeyCode(uint32_t key)