[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
This commit is contained in:
Andrey Butirsky 2021-10-22 02:48:47 +03:00
parent fda7e150df
commit 4395caa256

View file

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