From cfcf2baae789fe1665fabd8fa5701811b2f8668f Mon Sep 17 00:00:00 2001 From: Andrey Butirsky Date: Tue, 29 Sep 2020 15:17:39 +0300 Subject: [PATCH] fix: [1/2] Keyboard Layout applet doesn't follow actual layout switching We need to emit DBus signal on every layout change - explicit(keyboard shortcut, layout applet click) and implicit(focus window with different layout). Otherwise, external layout applet might not get updated. DIGEST: BUG: 426900 --- keyboard_layout_switching.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/keyboard_layout_switching.cpp b/keyboard_layout_switching.cpp index 49bbc72471..1cd7c61f30 100644 --- a/keyboard_layout_switching.cpp +++ b/keyboard_layout_switching.cpp @@ -38,6 +38,7 @@ void Policy::setLayout(quint32 layout) m_xkb->switchToLayout(layout); if (previousLayout != m_xkb->currentLayout()) { m_layout->updateNotifier(); + emit m_layout->layoutChanged(); } }