From: Johan Malm Date: Wed, 30 Dec 2020 11:09:36 +0000 (+0000) Subject: seat: enable libinput tap X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c765b9883f6048f23a639dc616ee311fd28246a2;p=proto%2Flabwc.git seat: enable libinput tap --- 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); }