[plasma/kwin] /: impr: no keyboard layout OSD on switching between windows

Andrey Butirsky null at kde.org
Fri Dec 11 20:19:50 GMT 2020


Git commit b127b5f45edeb3ae5660fa53b3e56b6a31649bdb by Andrey Butirsky.
Committed on 11/12/2020 at 20:19.
Pushed by butirsky into branch 'master'.

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

M  +1    -1    keyboard_input.cpp

https://invent.kde.org/plasma/kwin/commit/b127b5f45edeb3ae5660fa53b3e56b6a31649bdb

diff --git a/keyboard_input.cpp b/keyboard_input.cpp
index f9d3dd859..fdfb309cb 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);
     }
 }



More information about the kde-doc-english mailing list