Bug 389316

Summary: Language switch does not work properly with xwayland apps
Product: [Plasma] kwin Reporter: Victor Perevertkin <victor>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR Flags: mgraesslin: Wayland+
mgraesslin: X11-
Version First Reported In: 5.11.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Keyboard layout config scheenshot

Description Victor Perevertkin 2018-01-22 14:50:46 UTC
Created attachment 110051 [details]
Keyboard layout config scheenshot

Using wayland session on latest Neon User Edition with two keyboard layouts configured.
When I type in some Qt app (like KWrite) layout switching works as expected: it switches right after shortcut press.
But after pressing shortcut in xwayland app (I tried firefox, sublime text, pgadmin3) layout remains the same and changes only when I move focus to another window and return it back.
And one more thing - when pressing layout switching shortcut two times it changes layout but only until I move focus to another window.

supportInformation output: https://pastebin.com/AXT8uweq

Attached my keyboard layout screenshot
Comment 1 Martin Flöser 2018-01-22 18:33:16 UTC
How do you switch layouts? Do you use a shortcut set in the keymap options or the global shortcut (ctrl+alt+k) provided by Plasma?
Comment 2 Victor Perevertkin 2018-01-23 12:34:20 UTC
I've configured Caps Lock key as a shortcut in System Settings>Input Devices>Keyboard>Layouts (as on attached image). I thought this is the only way to configure it in Plasma :)
Comment 3 Martin Flöser 2018-01-23 15:52:24 UTC
This is unfortunately a known issue in older XWayland - it is fixed with XWayland 1.19, you only have 1.18. If you switch with the global shortcut it works, though.
Comment 4 Victor Perevertkin 2018-01-23 16:21:39 UTC
Yes, installing xwayland-hwe-16.04 package fixes the problem. Thank you.
Martin, do you know whether this package will be included by default in Neon 5.12?
Comment 5 Martin Flöser 2018-01-23 19:08:52 UTC
> Martin, do you know whether this package will be included by default in Neon
> 5.12?

Sorry, I don't know.