diff options
author | Mykola Orliuk <virkony@gmail.com> | 2020-10-03 22:11:38 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-12 12:31:32 +0100 |
commit | 85b08726500c8f297ea78714ac9d636b9ae70987 (patch) | |
tree | 00e21828fb6fc00b199113c3c55c899bd20fe61d /include/backend | |
parent | 40bfd9f8f79927b5095166a4b4b5b191288338ef (diff) |
backend/wayland: Link input devices with seats
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 9 |
1 files changed, 5 insertions, 4 deletions
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); |