From 49c7316e8ccba03c2dc2a4116d6fa1c944884a99 Mon Sep 17 00:00:00 2001 From: Carson Black Date: Fri, 13 Nov 2020 18:38:37 -0500 Subject: [PATCH] input: update keyboard repeat config reading to reflect new configuration style --- input.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/input.cpp b/input.cpp index b8cd9340a7..4e68df02e2 100644 --- a/input.cpp +++ b/input.cpp @@ -2157,7 +2157,10 @@ void InputRedirection::reconfigure() const auto config = inputConfig->group(QStringLiteral("Keyboard")); const int delay = config.readEntry("RepeatDelay", 660); const int rate = config.readEntry("RepeatRate", 25); - const bool enabled = config.readEntry("KeyboardRepeating", 0) == 0; + const QString repeatMode = config.readEntry("KeyRepeat", "accent"); + // 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. + const bool enabled = repeatMode == QLatin1String("accent") || repeatMode == QLatin1String("repeat"); waylandServer()->seat()->keyboard()->setRepeatInfo(enabled ? rate : 0, delay); }