From b127b5f45edeb3ae5660fa53b3e56b6a31649bdb Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Thu, 3 Sep 2020 23:30:59 +0300 Subject: [PATCH] impr: no keyboard layout OSD on switching between windows now if two windows have different layouts, there will be no OSD on switching between them on Alt+Tab GUI: DIGEST: BUG: 418699 --- keyboard_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard_input.cpp b/keyboard_input.cpp index f9d3dd8599..fdfb309cbc 100644 --- a/keyboard_input.cpp +++ b/keyboard_input.cpp @@ -222,7 +222,7 @@ void KeyboardInputRedirection::processKey(uint32_t key, InputRedirection::Keyboa m_xkb->forwardModifiers(); - if (event.modifiersRelevantForGlobalShortcuts() == Qt::KeyboardModifier::NoModifier) { + if (event.modifiersRelevantForGlobalShortcuts() == Qt::KeyboardModifier::NoModifier && type != QEvent::KeyRelease) { m_keyboardLayout->checkLayoutChange(previousLayout); } }