xwayland: Support for BTN_STYLUS3 kernel events
BTN_STYLUS3 has been introduced by the Linux 4.15 kernel to report the status of the third button present on Wacom's new "Pro Pen 3D" stylus. Treat this button like xf86-input-wacom and send a button 8 event ("navigate back") when received from Wayland. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
71348e99a8
commit
29a5423abd
|
@ -1698,6 +1698,7 @@ tablet_tool_button_state(void *data, struct zwp_tablet_tool_v2 *tool,
|
|||
|
||||
case 0x113: /* BTN_SIDE */
|
||||
case 0x116: /* BTN_BACK */
|
||||
case 0x149: /* BTN_STYLUS3 */
|
||||
xbtn = 8;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user