From c765b9883f6048f23a639dc616ee311fd28246a2 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 30 Dec 2020 11:09:36 +0000 Subject: [PATCH] seat: enable libinput tap --- src/seat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/seat.c b/src/seat.c index d4242634..5b7b1a9a 100644 --- a/src/seat.c +++ b/src/seat.c @@ -1,4 +1,5 @@ #include +#include #include #include "labwc.h" @@ -13,7 +14,14 @@ input_device_destroy(struct wl_listener *listener, void *data) void new_pointer(struct seat *seat, struct input *input) { - /* TODO: Configure libinput on device to set tap, acceleration, etc */ + /* + * We want to enable full libinput configuration eventually, but + * for the time being, lets just enable tap. + */ + struct libinput_device *libinput_dev = + wlr_libinput_get_device_handle(input->wlr_input_device); + libinput_device_config_tap_set_enabled(libinput_dev, + LIBINPUT_CONFIG_TAP_ENABLED); wlr_cursor_attach_input_device(seat->cursor, input->wlr_input_device); } -- 2.52.0