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
This commit is contained in:
Andrey Butirsky 2020-09-03 23:30:59 +03:00
parent 3f66aabd48
commit b127b5f45e

View file

@ -222,7 +222,7 @@ void KeyboardInputRedirection::processKey(uint32_t key, InputRedirection::Keyboa
m_xkb->forwardModifiers(); m_xkb->forwardModifiers();
if (event.modifiersRelevantForGlobalShortcuts() == Qt::KeyboardModifier::NoModifier) { if (event.modifiersRelevantForGlobalShortcuts() == Qt::KeyboardModifier::NoModifier && type != QEvent::KeyRelease) {
m_keyboardLayout->checkLayoutChange(previousLayout); m_keyboardLayout->checkLayoutChange(previousLayout);
} }
} }