Bug 389316 - Language switch does not work properly with xwayland apps
Summary: Language switch does not work properly with xwayland apps
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.11.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-22 14:50 UTC by Victor Perevertkin
Modified: 2018-01-23 19:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:
mgraesslin: Wayland+
mgraesslin: X11-


Attachments
Keyboard layout config scheenshot (66.20 KB, image/png)
2018-01-22 14:50 UTC, Victor Perevertkin
Details

Note You need to log in before you can comment on or make changes to this bug.
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.