Bug 486983 - Switching to another layout (while pressed) does not work correctly
Summary: Switching to another layout (while pressed) does not work correctly
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: xwayland (show other bugs)
Version: 6.1.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-13 20:04 UTC by H. Peter Anvin
Modified: 2025-03-16 09:32 UTC (History)
3 users (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 H. Peter Anvin 2024-05-13 20:04:33 UTC
SUMMARY

When using one of the Keyboard > Advanced > Switching to another layout > ... (while pressed) options, KDE will *permanently* switch to the second layout; after that, either pressing or releasing the key has no effect.

STEPS TO REPRODUCE
1. Define more than one keyboard layout
2. Set the option Advanced > Switching to another layout > Right Ctrl (while pressed)
3. Type some using the first layout
4. Press Right Ctrl + some key to type using the second layout
5. Release Right Ctrl. Try to type again using the first layout

OBSERVED RESULT
At point 5, the second keyboard layout will be used.

EXPECTED RESULT
The first keyboard layout should be used.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 40, plasma-systemsettings-6.0.4-1.fc40.x86_64, kwin-wayland-6.0.4.1-2.fc40.x86_64
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: qt6-qtbase-6.7.0-5.fc40.x86_64

ADDITIONAL INFORMATION
Comment 1 Matthias Blaicher 2024-10-01 07:06:31 UTC
I also encounter this bug on wayland (not X11), running Plasma 6.1.5.

Linux: Nixos master
KDE Plasma Version: 6.15
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 2 Matthias Blaicher 2024-10-01 07:29:51 UTC
Alright, so this is even more complicated:

* The floating layout indicator only shows the "second" layout being activated. So does the indicator in the taskbar.
* However, the KWin debug console window _does_ show the correct "Current Layout" in the Keyboard tab actively switching while the "while pressed" button is pressed. It is, in fact, extremely responsive.
* The switching _does_ work for _wayland_ applications - but not for X11 windows as verified with `xev`. 
* X11 keyboard switching _does_ work when manually toggling a "permanent" switch using the taskbar layout indicator.
Comment 3 Matthias Blaicher 2024-10-28 04:40:19 UTC
Still happening on

Operating System: NixOS nightly
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.5 (64-bit)
Graphics Platform: Wayland
Comment 4 Matthias Blaicher 2025-02-14 15:15:48 UTC
Still happening on 

Operating System: NixOS 25.05 (master as of 25/02/14)
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2 (64-bit)
Graphics Platform: Wayland
Comment 5 Matthias Blaicher 2025-03-16 09:32:52 UTC
Still happening on 

KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.7 (64-bit)
Graphics Platform: Wayland