Commit cfcf2baa authored by Andrey Butirsky's avatar Andrey Butirsky
Browse files

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.

BUG: 426900
parent cf4335ca
...@@ -38,6 +38,7 @@ void Policy::setLayout(quint32 layout) ...@@ -38,6 +38,7 @@ void Policy::setLayout(quint32 layout)
m_xkb->switchToLayout(layout); m_xkb->switchToLayout(layout);
if (previousLayout != m_xkb->currentLayout()) { if (previousLayout != m_xkb->currentLayout()) {
m_layout->updateNotifier(); m_layout->updateNotifier();
emit m_layout->layoutChanged();
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment