From: Ivailo Monev Date: Wed, 13 Jan 2021 06:39:02 +0000 (+0200) Subject: compared with definition in getX11AutoRepeat() X-Git-Tag: 4.12.0~2755 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=79c7ff978f309b68bdb392abcebc074a59fd6d0b;p=kde%2FKatie.git compared with definition in getX11AutoRepeat() Signed-off-by: Ivailo Monev --- diff --git a/src/gui/kernel/qkeymapper_x11.cpp b/src/gui/kernel/qkeymapper_x11.cpp index fef062a0a..fa6df5173 100644 --- a/src/gui/kernel/qkeymapper_x11.cpp +++ b/src/gui/kernel/qkeymapper_x11.cpp @@ -180,7 +180,7 @@ static int translateKeySym(const uint key) static bool getX11AutoRepeat() { XKeyboardState state; XGetKeyboardControl(qt_x11Data->display, &state); - if (state.global_auto_repeat) { + if (state.global_auto_repeat == AutoRepeatModeOn) { // NOTE: according to `xset -q` the delay is 250, // QApplication::keyboardInputInterval() is set to 400 but it does not // have the same meaning nor is it clear if the events are delayed by