mirror of
https://github.com/swaywm/sway.git
synced 2025-04-04 19:38:01 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue