diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-03-12 13:17:47 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-03-12 13:17:47 -0400 |
| commit | 16300ca2d9ea6141f1daf7cc5866fb5c6a016bad (patch) | |
| tree | 1b9c4f75ec160e85a2ffe9018c3564f105bd6678 /swaymsg | |
| parent | ce9e7e0526affc72f00e9476f26e610d7c8c6339 (diff) | |
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.
Diffstat (limited to 'swaymsg')
| -rw-r--r-- | swaymsg/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index f86000a4..e2c43445 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -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" }, |
