Bug 426120

Summary: wrong OSD indication when switching keyboard layout with Policy other than Global
Product: [Plasma] kwin Reporter: Andrey <butirsky>
Component: inputAssignee: Andrey <butirsky>
Status: RESOLVED FIXED    
Severity: normal CC: aspotashev, katyaberezyaka
Priority: NOR Flags: butirsky: Wayland+
butirsky: X11-
Version: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
URL: https://invent.kde.org/plasma/kwin/-/merge_requests/210
See Also: https://bugs.kde.org/show_bug.cgi?id=425590
https://bugs.kde.org/show_bug.cgi?id=426122
Latest Commit: Version Fixed In:
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 418699    

Description Andrey 2020-09-02 20:26:10 UTC
SUMMARY
Described the case with Application switching Policy.

STEPS TO REPRODUCE
1. Set Application Policy for keyboard layout switching in Keyboard Settings. Make sure there are at least 2 layouts.
2. Switch layout in one app, note OSD notification pop up on the switching.
3. Focus another app with mouse.
4. Start switching to the first app from there, now using Alt+Tab key combination. While pressing Alt+Tab, hold Alt for a little until Task Switcher appears, then shortly release Alt. 

OBSERVED RESULT
After the app switches, OSD notification indicates wrong layout (of the previous app).

EXPECTED RESULT
OSD should correspond to the actual app just switched.

SOFTWARE/OS VERSIONS
Operating System: Ubuntu 20.04
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
Comment 1 David Edmundson 2020-09-29 14:20:44 UTC
Git commit 2bbab06fc4e8277095049d04809a6f7d43d3d29c by David Edmundson, on behalf of Andrey Butirsky.
Committed on 29/09/2020 at 14:20.
Pushed by davidedmundson into branch 'master'.

fix: wrong keyboard layout OSD notification

DIGEST:

M  +3    -2    keyboard_input.cpp

https://invent.kde.org/plasma/kwin/commit/2bbab06fc4e8277095049d04809a6f7d43d3d29c