Open Bug 2012493 Opened 10 months ago Updated 10 months ago

Wacom pen's buttons are swapped under Wayland

Categories

(Core :: Widget: Gtk, defect, P1)

Firefox 147
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: matban, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0

Steps to reproduce:

I mostly use a Wacom tablet instead of a mouse. My Wacom pen has 2 buttons on the side (i.e., in addition to the tip and eraser). In Linux, in Gnome (v49 in Ubuntu 25.10) settings, you can configure actions for these buttons: for example, the 1st button to act as a middle click, the 2nd button to act as a right click.

Actual results:

Under Wayland in Firefox actions of these buttons are swapped: when I configure in Gnome the 1st button as the middle click and the 2nd button as the right click, in Firefox the 1st button triggers the right click, the 2nd button triggers the middle click. When I configure the 1st button as the right click and the 2nd buttons as the middle click, in Firefox the 1st button triggers the middle click, the 2nd button triggers the right click.

Expected results:

The buttons should act as configured in the Gnome's settings. They act correctly under X11, and in all applications I tested except for Firefox and Thunderbird.

The same problem is in Thunderbird: bug 2012497
(I had to select "Product" and I don't know how to select both in the same bug, so I submitted a separate bug).

Component: Untriaged → General
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

As the problem is both in Firefox and Thunderbird, I moved the bug to "Product: Core".

Duplicate of this bug: 2012497

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Widget: Gtk

On Wayland but after forcing Firefox to use XWayland the buttons act correctly (i.e., the same as configured in the Gnome's settings). It seems the problem is only when Firefox (and Thunderbird) use the Wayland window protocol.

Would be great if anyone with the tablet can look at it.

Keywords: helpwanted
Priority: -- → P3
Severity: -- → S3
Priority: P3 → P1
You need to log in before you can comment on or make changes to this bug.