SUMMARY The applet only changes it's layout indication when it's clicked or on input event with the new layout (provoking OSD with the layout). But layout could also be changed due just switching between different windows/apps (when on App/Win layout Policy), or when it's loaded from previous session on start. In the latter case, the indication doesn't changes and therefor is wrong. STEPS TO REPRODUCE 1. Set Layout policy to Application (in keyboard settings) 2. Change layout for some app, note it from the applet in systray. 3. Switch active window to some other app. OBSERVED RESULT Layout indication doesn't change. EXPECTED RESULT The indication should follow currently active layout. Operating System: Ubuntu 20.04 KDE Plasma Version: 5.19.80 KDE Frameworks Version: 5.74.0 Qt Version: 5.14.2
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/203
Git commit cba895e7239e5919aa15adfb4e71ad72fb6c0806 by Vlad Zahorodnii, on behalf of Andrey Butirsky. Committed on 20/08/2020 at 16:09. Pushed by vladz into branch 'master'. fix: keyboard layout applet doesn't show actual layout M +1 -1 keyboard_layout.h M +5 -1 keyboard_layout_switching.cpp https://invent.kde.org/plasma/kwin/commit/cba895e7239e5919aa15adfb4e71ad72fb6c0806
I can confirm that this bug is fixed on neon unstable. :)
Very nice! Another batch of fixes pending. Stay watching ;)