Bug 459538 - Keyboard layout resets to English every time I switch virtual desktop using trackpad gesture in wayland
Summary: Keyboard layout resets to English every time I switch virtual desktop using t...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL: https://bugs.chromium.org/p/chromium/...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-22 16:35 UTC by Alex
Modified: 2022-09-23 02:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2022-09-22 16:35:32 UTC
SUMMARY

It happens only in wayland and when using Chromium based browsers. Keyboard layout resets to English every time I switch virtual desktop. (It doesn't happen in when typing in other apps like Dolphin) 
It doesn't occur when you use keyboard shortcuts to move to the next desktop , it only happens using the trackpad gesture

STEPS TO REPRODUCE
1. Login to wayland session
2. Set different language layouts per window
3. Open chrome and pick a different language layout 
4. Use the trackpad gesture to go to the next desktop and then get back to the previous one
5. Start typing in Chrome 

OBSERVED RESULT
The keyboard switches back to English although it shouldn't .
You have to lose focus of the chrome window and focus on it again . Then the keyboard switches back to the proper layout.

EXPECTED RESULT
Keyboard layout per window persist

SOFTWARE/OS VERSIONS

KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-09-22 21:10:57 UTC
This is actually a bug in Chromium, believe it or not. Chromium hijacks the global shortcuts, with all sorts of creatively destructive consequences. See https://bugs.chromium.org/p/chromium/issues/detail?id=1338554.
Comment 2 Alex 2022-09-23 02:40:17 UTC
The thing is it's only happening when using the gesture not the global shortcut. Unfortunately it's very weird and very annoying. 
Thanks for answering