Linux stylus: drop generic Other(10|11) right-click remap

Review: X11 codes 10/11 are not stylus-specific; Wacom X11 already maps barrel to middle/right.

Co-authored-by: nrq6993-a11y <nrq6993-a11y@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-10-23 02:04:47 +07:00
committed by bflatastic
co-authored by nrq6993-a11y
parent b37522bbb3
commit 06790288e1
-2
View File
@@ -77,8 +77,6 @@ pub(crate) fn map_tablet_button(code: u16) -> Option<winit::event::MouseButton>
match code {
BTN_STYLUS | BTN_STYLUS2 => Some(MouseButton::Right),
BTN_STYLUS3 => Some(MouseButton::Middle),
// XInput2 on X11 often numbers the first barrel button 10 or 11.
10 | 11 => Some(MouseButton::Right),
_ => None,
}
}