Skip to content

[3.24] gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click

This mapping of stylus evdev input event codes into GDK button numbers makes gdk/wayland inconsistent with gdk/x11, so depending on the backend the same button middle-click pastes or right-click pops up menus.

Make the wayland backend consistent with X11, so that a GNOME wayland session gets these buttons consistently mapped across all kinds of clients.

(cherry-picked from commit e28ff79b)

Merge request reports