aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
diff options
context:
space:
mode:
authorLibravatar Benjamin Cheng <ben@bcheng.cf>2019-03-12 13:17:47 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-04-14 19:31:36 -0400
commit6737b90cb93d0231bbbc6045adf8a2443bc4e21c (patch)
tree1b9c4f75ec160e85a2ffe9018c3564f105bd6678 /swaymsg
parentSpawn swaynag as a wayland client (diff)
downloadsway-6737b90cb93d0231bbbc6045adf8a2443bc4e21c.tar.gz
sway-6737b90cb93d0231bbbc6045adf8a2443bc4e21c.tar.zst
sway-6737b90cb93d0231bbbc6045adf8a2443bc4e21c.zip
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.c1
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) {
98 } type_names[] = { 98 } type_names[] = {
99 { "keyboard", "Keyboard" }, 99 { "keyboard", "Keyboard" },
100 { "pointer", "Mouse" }, 100 { "pointer", "Mouse" },
101 { "touchpad", "Touchpad" },
101 { "tablet_pad", "Tablet pad" }, 102 { "tablet_pad", "Tablet pad" },
102 { "tablet_tool", "Tablet tool" }, 103 { "tablet_tool", "Tablet tool" },
103 { "touch", "Touch" }, 104 { "touch", "Touch" },