Bug 507290 - non-English layout at the top of keyboard layout list breaks game inputs
Summary: non-English layout at the top of keyboard layout list breaks game inputs
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: input (other bugs)
Version First Reported In: 6.4.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-21 05:46 UTC by Damglador
Modified: 2025-09-19 21:25 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 Damglador 2025-07-21 05:46:03 UTC
SUMMARY
I noticed it in:
- Stalker 2
- Satisfactory

In Unreal Engine games if I have Ukrainian at the top of my keyboard layout list, it'll break input in the game and nothing I can do about it until I move English to the top and relogin.

STEPS TO REPRODUCE
1. Add Ukrainian keyboard layout
2. Move Ukrainian keyboard layout to the top of the keyboard layout list
3. Start Satisfactory (theoretically any Unreal game in Proton)
4. Try to move in the game

OBSERVED RESULT
Keymaps are borked

EXPECTED RESULT
I guess order of keyboard layouts should affect that

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 16 GiB of RAM (13.5 GiB usable)
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

ADDITIONAL INFORMATION
There's also an issue with SDL games and RimWorld where keybinds are broken, but only if I start the game with Ukrainian and until I restart it with English layout, so I think it's different, maybe not even a kwin issue.
Comment 1 Nate Graham 2025-09-19 19:11:44 UTC
Presumably the game is expecting W, A, S, and D keyspresses that are no longer occurring when the keyboard layout is Ukrainian, right? If you re-bind the keys in the game to use the keys according to where they are in a Ukrainian keyboard layout, does it work?

If so, then this is not really a bug, and could only be made better by the game looking for different things for its key events.
Comment 2 Damglador 2025-09-19 20:59:53 UTC
It's definitely not a game thing. Testing this right now, it seems like it's an issue with Wine and Proton, but it's fixed in Proton GE, so I probably should report it to Wine.
Thanks for your time. This can be marked as resolved.
Comment 3 Damglador 2025-09-19 21:17:15 UTC
Correction, this is an issue with Wine X11 and is fixed with Wine Wayland. Might as well be an X11/Xwayland bug.

There's a somewhat similar bug with native games that don't capture keybinds using physical layout. If Ukrainian is selected when such game is launched, the bindings will be broken until the game is restarted with English layout selected, but when using Wayland (without Xwayland) the restart is not needed and the keybinds work or don't depending on the currently selected keyboard layout.