| Summary: | Wayland : settings app keyboard layouts don't apply to X11 applications | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Xavier Lukhas <Xavier.Lukhas> |
| Component: | xwayland | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED DOWNSTREAM | ||
| Severity: | minor | CC: | butirsky, dec05eba, dev, duha.bugs, natalie_clarius, nate, xaver.hugl |
| Priority: | NOR | ||
| Version First Reported In: | 6.3.4 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Screenshot of gsr-ui shortcut settings | ||
|
Description
Xavier Lukhas
2025-05-01 20:20:24 UTC
This specifically happens because gpu screen recorder ui grabs the keyboard device (/dev/input device) and creates a virtual keyboard (with /dev/uinput). In those cases setxkbmap needs to run to update keyboard mapping for x11 applications. This can be easiest be observed when running keyboard remapping software, switching to french keyboard layout in kde settings and then running xev. It will keep qwerty layout using setxkbmap is run. 1. Do you observe the same issue with other X11 applications in a Wayland session? 2. Do you observe the same issue using gpu-screen-recorder in a X11 session? 3. Is the issue specific to the * numpad key? Note that setxkbmap should not be used in a Wayland session. Indeed it should display the warning “WARNING: Running setxkbmap against an Xwayland server”. Switching between keyboard layouts works as expected with normal X11 apps running through Xwayland. Please use the global shortcuts portal to do shortcuts properly. We can't support workarounds like that. (In reply to Wismill from comment #2) > 1. Do you observe the same issue with other X11 applications in a Wayland > session? I don't think so. I tried with VLC and Discord, which I believe run under XWayland (I used xeyes to check). > 2. Do you observe the same issue using gpu-screen-recorder in a X11 session? I do actually. Funny, I hadn't thought to check. > 3. Is the issue specific to the * numpad key? On my setup with my keyboard (Logitech G815), it is specific to that key. It goes away if I stop the service. `systemctl --user stop gpu-screen-recorder-ui.service` > Note that setxkbmap should not be used in a Wayland session. Indeed it > should display the warning “WARNING: Running setxkbmap against an Xwayland > server”. |