aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorMykola Orliuk <virkony@gmail.com>2020-10-03 17:34:32 +0200
committerSimon Ser <contact@emersion.fr>2020-10-18 16:28:12 +0200
commit1ac5257357fdf51b2864149f4896c51afd2eda09 (patch)
tree2afa4154ddb399a381db1169192d872c8f687d7e /include/backend
parentdf417b7e95fce515f85b20e180742bcc289e35d4 (diff)
backend/wayland: factor out wlr_wl_seat
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/wayland.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h
index a053aded..61b349a5 100644
--- a/include/backend/wayland.h
+++ b/include/backend/wayland.h
@@ -38,13 +38,9 @@ struct wlr_wl_backend {
struct wp_presentation *presentation;
struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1;
struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1;
- struct wl_seat *seat;
- struct wl_touch *touch;
- struct wl_pointer *pointer;
- struct wl_keyboard *keyboard;
+ struct wlr_wl_seat *seat;
struct wlr_wl_pointer *current_pointer;
struct zwp_tablet_manager_v2 *tablet_manager;
- char *seat_name;
struct wlr_drm_format_set linux_dmabuf_v1_formats;
};
@@ -108,6 +104,15 @@ struct wlr_wl_pointer {
struct wl_listener output_destroy;
};
+struct wlr_wl_seat {
+ struct wl_seat *wl_seat;
+
+ char *name;
+ struct wl_touch *touch;
+ struct wl_pointer *pointer;
+ struct wl_keyboard *keyboard;
+};
+
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);
@@ -116,6 +121,8 @@ void create_wl_keyboard(struct wl_keyboard *wl_keyboard, struct wlr_wl_backend *
void create_wl_touch(struct wl_touch *wl_touch, struct wlr_wl_backend *wl);
struct wlr_wl_input_device *create_wl_input_device(
struct wlr_wl_backend *backend, enum wlr_input_device_type type);
+void create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl);
+void destroy_wl_seats(struct wlr_wl_backend *wl);
extern const struct wl_seat_listener seat_listener;