mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
backend/wayland: Link input devices with seats
This commit is contained in:
parent
40bfd9f8f7
commit
85b0872650
5 changed files with 32 additions and 26 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue