From a43ef8ac91f1d712f5a73fec2e4952f132d6f2fe Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 12 Oct 2022 23:50:38 +0100 Subject: [PATCH] Guard against reconfiguring wayland specific input on X11 reconfigure is hooked up to a config watcher that is applicable on X11 and wayland. A runtime check is added to reconfigure, if we're not initialised we have nothing to reconfigure. initialise calls reconfigure at the end of the method. --- src/keyboard_input.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/keyboard_input.cpp b/src/keyboard_input.cpp index 0a2900a54e..7ffc80b839 100644 --- a/src/keyboard_input.cpp +++ b/src/keyboard_input.cpp @@ -156,6 +156,9 @@ void KeyboardInputRedirection::init() void KeyboardInputRedirection::reconfigure() { + if (!m_inited) { + return; + } if (waylandServer()->seat()->keyboard()) { const auto config = InputConfig::self()->inputConfig()->group(QStringLiteral("Keyboard")); const int delay = config.readEntry("RepeatDelay", 660);