[PATCH libinput 2/2] tools: always enable tapping in the event-gui program
Peter Hutterer
peter.hutterer at who-t.net
Sun Jul 20 23:40:08 PDT 2014
This is a debugging tool, so the features to debug should be enabled by
default.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
tools/event-gui.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tools/event-gui.c b/tools/event-gui.c
index b4a6506..544a682 100644
--- a/tools/event-gui.c
+++ b/tools/event-gui.c
@@ -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
--
1.9.3
More information about the wayland-devel
mailing list