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

@ -98,6 +98,7 @@ static const char *pretty_type_name(const char *name) {
} type_names[] = {
{ "keyboard", "Keyboard" },
{ "pointer", "Mouse" },
{ "touchpad", "Touchpad" },
{ "tablet_pad", "Tablet pad" },
{ "tablet_tool", "Tablet tool" },
{ "touch", "Touch" },