Wayland: Wacom stylus button mapping is switched between GTK and XWayland applications
Affected version
- Fedora 38
- Gnome/Mutter 44.2
- Wayland
- Wacom Intuos BT M (Device ID 0x379)
Bug summary
The Gnome Wacom settings lets you map the Wacom stylus buttons, e.g. switching the actions for button 1 and button 2. This works nicely in all Wayland applications (GTK3, GTK4 applications, Firefox Wayland), but the modified button mapping is not applied to applications that go through XWayland like Steam, VS-Code or Jetbrains IDE's. XWayland applications still have the default button mapping.
This give some confusing interactions with application, e.g. some applications open the context menu on button 1 whereas other applications will open the context menu on button 2.
This issues does not apply to X11, there a modified button mapping is applied on all applications.
May be related: #2225
Steps to reproduce
- Login to a Wayland session.
- Open Gnome settings
- Select Wacom Tablet and set e.g. Button 1 from "Default" to "Right Mouse Click".
- Open an XWayland application (e.g. Steam, discord or VS-Code)
- Perform an action using the Stylus buttons
What happened
- The default mapping is still applied on the XWayland application, thus the context menu still opens with Button 2 and Button 1 emulates a middle mouse click.
What did you expect to happen
- The modified mapping should also apply to XWayland applications, thus e.g. the context menu should open on Button 1 the way it is configured.
Relevant logs, screenshots, screencasts etc.
Unfortunately nothing relevant shows up in journalctl
.