Add heuristics to differentiate touchpads

Use libinput_device_config_tap_get_finger_count to determine whether
a pointer is a touchpad.

swaymsg is also updated to reflect the new touchpad type.
This commit is contained in:
Benjamin Cheng 2019-03-12 13:17:47 -04:00 committed by Benjamin Cheng
parent 27f51360b7
commit e2da96c90a
No known key found for this signature in database
GPG key ID: 4FE22E7528E97BD8
4 changed files with 38 additions and 19 deletions

View file

@ -62,4 +62,6 @@ struct input_config *input_device_get_config(struct sway_input_device *device);
char *input_device_get_identifier(struct wlr_input_device *device);
const char *input_device_get_type(struct sway_input_device *device);
#endif