mirror of
https://github.com/swaywm/sway.git
synced 2025-04-04 11:27:47 +03:00
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:
parent
6961bf2e4c
commit
6737b90cb9
4 changed files with 38 additions and 19 deletions
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue