From 6737b90cb93d0231bbbc6045adf8a2443bc4e21c Mon Sep 17 00:00:00 2001
From: Benjamin Cheng <ben@bcheng.cf>
Date: Tue, 12 Mar 2019 13:17:47 -0400
Subject: 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.
---
 swaymsg/main.c | 1 +
 1 file changed, 1 insertion(+)

(limited to 'swaymsg')

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" },
-- 
cgit v1.2.3