Bug 413781 - Cannot switch keyboard layout with Meta key in X11-based applications
Summary: Cannot switch keyboard layout with Meta key in X11-based applications
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 5.23.3
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-03 18:39 UTC by Alexander Potashev
Modified: 2023-09-06 10:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2019-11-03 18:39:40 UTC
SUMMARY
[Wayland] Cannot switch keyboard layout in X11-based applications.

STEPS TO REPRODUCE
1. Run Plasma X11 session.
2. Configure two keyboard layouts: English (US) and Russian.
3. Configure a keyboard shortcut for switching between the two keyboard layouts. I choose the "Menu" key for this.
4. Logout from Plasma X11 session.
5. Run Plasma Wayland session.
6. Run Google Chrome (or another X11-based application: KeePassXC, Telegram, ...).
7. Press "Menu" key to switch to Russian keyboard layout.

OBSERVED RESULT
1. The application (e.g. Google Chrome) interprets the "Menu" key press and opens a context menu.
2. Plasma displays an OSD with a keyboard icon and saying "Russian". I guess Plasma or kwin thinks that the switch was successful.
3. If I close the context menu and type in something in the Google Chrome window, it still acts like using an English layout.

EXPECTED RESULT
1. Should switch to Russian keyboard layout.
2. Should not open context menu.

SOFTWARE/OS VERSIONS
Operating System: Fedora 31
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.61.0
Qt Version: 5.12.5
Kernel Version: 5.3.7-301.fc31.x86_64
OS Type: 64-bit
Processors: 2 × Intel® Celeron® CPU B800 @ 1.50GHz
Memory: 3,8 ГиБ

ADDITIONAL INFORMATION
1. The list of keyboard layouts in SystemSettings under Wayland is empty.
2. Switching keyboard layouts from tray icon does not work, that is why I use a keyboard shortcut ("Menu" key).
Comment 1 Alexander Potashev 2021-12-15 09:26:11 UTC
Update: KeePassXC and Telegram have no issue. Can only reproduce with Chrome at this point.
Comment 2 Alexander Potashev 2021-12-15 09:58:28 UTC
Other layout switching shortcuts, e.g. Ctrl+Shift, do work. So this issue is limited to using Menu key a the shortcut.
Comment 3 Alexander Potashev 2021-12-15 09:59:03 UTC
Reproducible in Fedora 35.
Comment 4 David Edmundson 2023-09-06 10:38:51 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.