summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-07-21 10:58:24 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-07-22 08:19:29 +1000
commit5019b25a6bf99f09e6315b3297bede79d5ad3ac2 (patch)
treefbc5a362c7bb5ba22859a2fcb6d08e7f3f3f518d
parentd9cf64919985e35550fc4586b55c66c2025e73c9 (diff)
downloadlibinput-5019b25a6bf99f09e6315b3297bede79d5ad3ac2.tar.gz
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>
-rw-r--r--tools/event-gui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/event-gui.c b/tools/event-gui.c
index b4a65066..544a6829 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