[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
master
Andrey Butirsky 3 years ago
parent fda7e150df
commit 4395caa256

@ -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.

Loading…
Cancel
Save