From 8c3c6987dbdffa74eb1fee901b4ab1d73641e29f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 11 Aug 2022 09:09:37 +0200 Subject: backend/wayland: fix touch device not added on startup We were firing the new_input signal on backend initialization, before the compositor had the chance to add a listener for it. Mimick what's done for wl_keyboard: if the backend hasn't been started, delay wl_touch initialization. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3473 --- include/backend/wayland.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/backend') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 5baaac9d..3a0b1327 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -144,6 +144,8 @@ void init_seat_pointer(struct wlr_wl_seat *seat); void finish_seat_pointer(struct wlr_wl_seat *seat); void create_pointer(struct wlr_wl_seat *seat, struct wlr_wl_output *output); +void init_seat_touch(struct wlr_wl_seat *seat); + void init_seat_tablet(struct wlr_wl_seat *seat); void finish_seat_tablet(struct wlr_wl_seat *seat); -- cgit v1.2.3