From 4395caa2568e8200f719007484609bc6ee191351 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Fri, 22 Oct 2021 02:48:47 +0300 Subject: [PATCH] [wayland] fix ignored keyboard RepeatRate X11 can take float RepeatRate, Wayland - int only so the setting is to be rounded. Should be indistinguishable on usual rates. BUG: 443721 --- src/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.cpp b/src/input.cpp index 98d9b62cae..945132ac6f 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -2365,7 +2365,7 @@ void InputRedirection::reconfigure() auto inputConfig = m_inputConfigWatcher->config(); const auto config = inputConfig->group(QStringLiteral("Keyboard")); const int delay = config.readEntry("RepeatDelay", 660); - const int rate = config.readEntry("RepeatRate", 25); + const int rate = int(config.readEntry("RepeatRate", 25.0)); const QString repeatMode = config.readEntry("KeyRepeat", "repeat"); // when the clients will repeat the character or turn repeat key events into an accent character selection, we want // to tell the clients that we are indeed repeating keys.