From 19d36fbe69f1524bf9b2ecc9472c64db94d900d9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Sep 2019 16:45:39 +0530 Subject: [PATCH] Wayland: Fix key repeat not being stopped when focus leaves window. This is expected behavior on Wayland, apparently Fixes #2014 --- docs/changelog.rst | 7 +++++++ glfw/wl_init.c | 1 + 2 files changed, 8 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index d482ce7a2..006065bee 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,13 @@ Changelog |kitty| is a feature full, cross-platform, *fast*, GPU based terminal emulator. To update |kitty|, :doc:`follow the instructions `. +0.15.0 [future] +-------------------- + +- Wayland: Fix key repeat not being stopped when focus leaves window. This is + expected behavior on Wayland, apparently (:iss:`2014`) + + 0.14.6 [2019-09-25] --------------------- diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 9024efa02..507e1549a 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -398,6 +398,7 @@ static void keyboardHandleLeave(void* data UNUSED, _glfw.wl.keyboardFocus = NULL; _glfwInputWindowFocus(window, false); + toggleTimer(&_glfw.wl.eventLoopData, _glfw.wl.keyRepeatInfo.keyRepeatTimer, 0); } static void