Commit ac081cad authored by Andrey Butirsky's avatar Andrey Butirsky Committed by Vlad Zahorodnii
Browse files

fixup! [wayland] fix ignored keyboard RepeatRate

Ceiling so that it repeats on minimal 0.x rates accessible via UI

BUG: 443721
(cherry picked from commit 43aec9ca)
parent 638f5482
......@@ -59,6 +59,7 @@
#include <qpa/qwindowsysteminterface.h>
#include <xkbcommon/xkbcommon.h>
#include <cmath>
namespace KWin
......@@ -2366,7 +2367,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 = int(config.readEntry("RepeatRate", 25.0));
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
// to tell the clients that we are indeed repeating keys.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment