From c621656790578f3438d0092a6125d3322f74e6e3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 10 Apr 2015 15:45:35 +1000 Subject: [PATCH] tools: apply the config options for the event-gui helper too This changes the current behavior of tapping enabled-by-default in the GUI helper. Signed-off-by: Peter Hutterer --- tools/event-gui.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/event-gui.c b/tools/event-gui.c index 75e4e194..3ce74183 100644 --- a/tools/event-gui.c +++ b/tools/event-gui.c @@ -279,14 +279,8 @@ handle_event_device_notify(struct libinput_event *ev) libinput_device_get_name(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)); - } + tools_device_apply_config(libinput_event_get_device(ev), + &options); li = libinput_event_get_context(ev); w = libinput_get_user_data(li);