https://bugs.winehq.org/show_bug.cgi?id=54392
Bug ID: 54392 Summary: Cyberpunk 2077: Wayland: Only primary keyboard layout passed through to the game. Product: Wine Version: 7.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: uselessthings@protonmail.com Distribution: ---
In CP2077 running under Wine's Wayland implementation, only the primary keyboard layout is passed along. The compositor Hyprland uses the XKB spec to set keyboard layouts, and setting XKBLAYOUT=us, de XKBOPTIONS=grp:ctrl_shift_toggle only passes the us layout to the game. Switching the configuration around to XKBLAYOUT=de, us, only the German layout is passed along to the game and hitting the toggle keybind does nothing to change it.
https://bugs.winehq.org/show_bug.cgi?id=54392
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- Wine does not include a Wayland implementation. Are you running through XWayland, or using an out-of-tree patch set?
https://bugs.winehq.org/show_bug.cgi?id=54392
--- Comment #2 from uselessthings@protonmail.com --- No clue, I assumed wayland implementation was a thing since neither xlsclients nor xeyes give any indication as to the game in question running on XWayland.
https://bugs.winehq.org/show_bug.cgi?id=54392
--- Comment #3 from Zeb Figura z.figura12@gmail.com --- It's more likely than not this is a bug in one of those two things. Please try to test with x11; if that works then this should be reported to either XWayland or the maintainer of said out-of-tree patch set accordingly.
https://bugs.winehq.org/show_bug.cgi?id=54392
--- Comment #4 from uselessthings@protonmail.com --- I have now tried with both X11 and Wayland, with Lutris-wine 7.2-2 and regular Wine without any custom patchsets (8.0 in my case) and all configurations exhibit the same problem. Only the foremost/primary X keyboard layout from the file at /etc/X11/xorg.conf.d/ is passed along, with the toggle keybinds that work on desktop not working inside the game.
https://bugs.winehq.org/show_bug.cgi?id=54392
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Cyberpunk 2077: Wayland: |Cyberpunk 2077: Only |Only primary keyboard |primary keyboard layout |layout passed through to |passed through to the game. |the game. |