evdev: Map LIBINPUT_DEVICE_CAP_TABLET to CLUTTER_TABLET_DEVICE
This is so tablet devices have the correct ClutterInputDeviceType
This commit is contained in:
parent
fe59da43ef
commit
6e773389fd
@ -203,6 +203,8 @@ _clutter_input_device_evdev_determine_type (struct libinput_device *ldev)
|
|||||||
*/
|
*/
|
||||||
if (libinput_device_config_tap_get_finger_count (ldev) > 0)
|
if (libinput_device_config_tap_get_finger_count (ldev) > 0)
|
||||||
return CLUTTER_TOUCHPAD_DEVICE;
|
return CLUTTER_TOUCHPAD_DEVICE;
|
||||||
|
else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_TABLET_TOOL))
|
||||||
|
return CLUTTER_TABLET_DEVICE;
|
||||||
else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_POINTER))
|
else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_POINTER))
|
||||||
return CLUTTER_POINTER_DEVICE;
|
return CLUTTER_POINTER_DEVICE;
|
||||||
else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_TOUCH))
|
else if (libinput_device_has_capability (ldev, LIBINPUT_DEVICE_CAP_TOUCH))
|
||||||
|
Loading…
Reference in New Issue
Block a user