diff --git a/glfw/wl_init.c b/glfw/wl_init.c index ea99a05c1..5659ba630 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -445,15 +445,11 @@ static void keyboardHandleKey(void* data UNUSED, _glfw.wl.serial = serial; glfw_xkb_handle_key_event(window, &_glfw.wl.xkb, key, action); - bool repeatable = false; if (action == GLFW_PRESS && _glfw.wl.keyboardRepeatRate > 0 && glfw_xkb_should_repeat(&_glfw.wl.xkb, key)) { _glfw.wl.keyRepeatInfo.key = key; - repeatable = true; _glfw.wl.keyRepeatInfo.keyboardFocus = window; - } - if (repeatable) { changeTimerInterval(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, _glfw.wl.keyboardRepeatDelay); toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, 1); } else if (action == GLFW_RELEASE && key == _glfw.wl.keyRepeatInfo.key) {