From 85b08726500c8f297ea78714ac9d636b9ae70987 Mon Sep 17 00:00:00 2001 From: Mykola Orliuk Date: Sat, 3 Oct 2020 22:11:38 +0200 Subject: backend/wayland: Link input devices with seats --- include/backend/wayland.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/backend') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index c8a0429c..65fe6bbc 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -87,6 +87,7 @@ struct wlr_wl_input_device { uint32_t fingers; struct wlr_wl_backend *backend; + struct wlr_wl_seat *seat; void *resource; }; @@ -119,11 +120,11 @@ struct wlr_wl_seat { struct wlr_wl_backend *get_wl_backend_from_backend(struct wlr_backend *backend); void update_wl_output_cursor(struct wlr_wl_output *output); struct wlr_wl_pointer *pointer_get_wl(struct wlr_pointer *wlr_pointer); -void create_wl_pointer(struct wl_pointer *wl_pointer, struct wlr_wl_output *output); -void create_wl_keyboard(struct wl_keyboard *wl_keyboard, struct wlr_wl_backend *wl); -void create_wl_touch(struct wl_touch *wl_touch, struct wlr_wl_backend *wl); +void create_wl_pointer(struct wlr_wl_seat *seat, struct wlr_wl_output *output); +void create_wl_keyboard(struct wlr_wl_seat *seat); +void create_wl_touch(struct wlr_wl_seat *seat); struct wlr_wl_input_device *create_wl_input_device( - struct wlr_wl_backend *backend, enum wlr_input_device_type type); + struct wlr_wl_seat *seat, enum wlr_input_device_type type); bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl); void destroy_wl_seats(struct wlr_wl_backend *wl); -- cgit v1.2.3