From db202f5c265d552ca8c908c72c1a46f9270b0291 Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Wed, 2 Sep 2020 19:53:05 +0300 Subject: [PATCH] fix: redundant keyboard layout OSD notification there is no need to display the OSD for window we are going to switch from DIGEST: BUG: 426122 --- keyboard_input.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keyboard_input.cpp b/keyboard_input.cpp index 0c279e631..f9d3dd859 100644 --- a/keyboard_input.cpp +++ b/keyboard_input.cpp @@ -222,7 +222,9 @@ void KeyboardInputRedirection::processKey(uint32_t key, InputRedirection::Keyboa m_xkb->forwardModifiers(); + if (event.modifiersRelevantForGlobalShortcuts() == Qt::KeyboardModifier::NoModifier) { m_keyboardLayout->checkLayoutChange(previousLayout); + } } void KeyboardInputRedirection::processModifiers(uint32_t modsDepressed, uint32_t modsLatched, uint32_t modsLocked, uint32_t group)