aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-03-12 13:17:47 -0400
committerFurkan Sahin <furkan-dev@proton.me>2019-03-12 13:17:47 -0400
commit16300ca2d9ea6141f1daf7cc5866fb5c6a016bad (patch)
tree1b9c4f75ec160e85a2ffe9018c3564f105bd6678 /include
parentce9e7e0526affc72f00e9476f26e610d7c8c6339 (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 'include')
-rw-r--r--include/sway/input/input-manager.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h
index e166a237..8d4a5b00 100644
--- a/include/sway/input/input-manager.h
+++ b/include/sway/input/input-manager.h
@@ -62,4 +62,6 @@ struct input_config *input_device_get_config(struct sway_input_device *device);
char *input_device_get_identifier(struct wlr_input_device *device);
+const char *input_device_get_type(struct sway_input_device *device);
+
#endif