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).
This commit is contained in:
Weng Xuetian 2024-04-03 15:47:03 -07:00
parent 38e2bf34cf
commit 8c6ebee318
No known key found for this signature in database
GPG key ID: 8E8B898CBF2412F9

View file

@ -169,7 +169,7 @@ void KeyboardInputRedirection::reconfigure()
} }
if (waylandServer()->seat()->keyboard()) { if (waylandServer()->seat()->keyboard()) {
const auto config = kwinApp()->inputConfig()->group(QStringLiteral("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 int rate = std::ceil(config.readEntry("RepeatRate", 25.0));
const QString repeatMode = config.readEntry("KeyRepeat", "repeat"); 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 // when the clients will repeat the character or turn repeat key events into an accent character selection, we want