backends/native: Swap BTN_STYLUS and BTN_STYLUS2
BTN_STYLUS is the lower one and traditionally (read: in X) maps to middle button (2), BTN_STYLUS2 is the upper one and traditionally maps to right button (3). This is also what GTK does and our desktop actions too map MIDDLE to BTN_STYLUS and RIGHT to BTN_STYLUS2. See also gtk!6168 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3541>
This commit is contained in:
parent
d92c89ca23
commit
947c636275
1 changed files with 2 additions and 2 deletions
|
@ -824,12 +824,12 @@ meta_seat_impl_notify_button_in_impl (MetaSeatImpl *seat_impl,
|
|||
|
||||
case BTN_RIGHT:
|
||||
case BTN_STYLUS:
|
||||
button_nr = CLUTTER_BUTTON_SECONDARY;
|
||||
button_nr = CLUTTER_BUTTON_MIDDLE;
|
||||
break;
|
||||
|
||||
case BTN_MIDDLE:
|
||||
case BTN_STYLUS2:
|
||||
button_nr = CLUTTER_BUTTON_MIDDLE;
|
||||
button_nr = CLUTTER_BUTTON_SECONDARY;
|
||||
break;
|
||||
|
||||
case BTN_STYLUS3:
|
||||
|
|
Loading…
Reference in a new issue