gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Jul 2023 14:24:03 +0000 (16:24 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 5 Jul 2023 14:54:54 +0000 (16:54 +0200)
commite28ff79bec53ecd56885390ba4a66019cde598c6
tree9d9b1aa168c364b8fc49900b6474b6a42517d522
parentdccf6b55bdd423fd6a1f04f42c06b94111b06959
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.

Closes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5935
gdk/wayland/gdkseat-wayland.c