From 8c6ebee318bf6cb947177817d4e971a55c76ec5f Mon Sep 17 00:00:00 2001 From: Weng Xuetian Date: Wed, 3 Apr 2024 15:47:03 -0700 Subject: [PATCH] Fix inconsistent default keyboard delay value used in kwin. plasma-desktop/keyboard/keyboardmiscsettings.kcfg has the default value 600. When default value (600) is set from kcm, kwin will wrongly use its own default value in the code (660, which is most likely due to a typo when the code is initially written). --- src/keyboard_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keyboard_input.cpp b/src/keyboard_input.cpp index c34b2c8780..fe2844e2e3 100644 --- a/src/keyboard_input.cpp +++ b/src/keyboard_input.cpp @@ -169,7 +169,7 @@ void KeyboardInputRedirection::reconfigure() } if (waylandServer()->seat()->keyboard()) { const auto config = kwinApp()->inputConfig()->group(QStringLiteral("Keyboard")); - const int delay = config.readEntry("RepeatDelay", 660); + const int delay = config.readEntry("RepeatDelay", 600); const int rate = std::ceil(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