mirror of
https://github.com/labwc/labwc.git
synced 2026-04-14 08:21:58 -04:00
seat: enable libinput tap
This commit is contained in:
parent
375084c40c
commit
c765b9883f
1 changed files with 9 additions and 1 deletions
10
src/seat.c
10
src/seat.c
|
|
@ -1,4 +1,5 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <wlr/backend/libinput.h>
|
||||||
#include <wlr/util/log.h>
|
#include <wlr/util/log.h>
|
||||||
#include "labwc.h"
|
#include "labwc.h"
|
||||||
|
|
||||||
|
|
@ -13,7 +14,14 @@ input_device_destroy(struct wl_listener *listener, void *data)
|
||||||
void
|
void
|
||||||
new_pointer(struct seat *seat, struct input *input)
|
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);
|
wlr_cursor_attach_input_device(seat->cursor, input->wlr_input_device);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue