mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-03 15:00:12 +01:00
tools: always enable tapping in the event-gui program
This is a debugging tool, so the features to debug should be enabled by default. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
d9cf649199
commit
5019b25a6b
1 changed files with 9 additions and 0 deletions
|
|
@ -223,6 +223,15 @@ handle_event_device_notify(struct libinput_event *ev)
|
|||
type = "removed";
|
||||
|
||||
msg("%s %s\n", libinput_device_get_sysname(dev), type);
|
||||
|
||||
if (libinput_device_config_tap_get_finger_count(dev) > 0) {
|
||||
enum libinput_config_status status;
|
||||
status = libinput_device_config_tap_set_enabled(dev,
|
||||
LIBINPUT_CONFIG_TAP_ENABLED);
|
||||
if (status != LIBINPUT_CONFIG_STATUS_SUCCESS)
|
||||
error("%s: Failed to enable tapping\n",
|
||||
libinput_device_get_sysname(dev));
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue