From d7dcbbc1758c29ca438dc358ca7e867d6f7a976c Mon Sep 17 00:00:00 2001 From: nyorain Date: Mon, 14 Aug 2017 18:19:42 +0200 Subject: Add wayland backend cursor support --- include/backend/wayland.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index d930f21b..92ae63ba 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -27,6 +27,7 @@ struct wlr_wl_backend { struct wl_shell *shell; struct wl_shm *shm; struct wl_seat *seat; + struct wl_pointer *pointer; char *seat_name; }; @@ -38,6 +39,14 @@ struct wlr_wl_backend_output { struct wl_shell_surface *shell_surface; struct wl_egl_window *egl_window; struct wl_callback *frame_callback; + + struct wl_shm_pool *cursor_pool; + void *cursor_buffer; // actually a (client-side) struct wl_buffer* + uint8_t *cursor_data; + struct wl_surface *cursor_surface; + uint32_t cursor_buf_size; + uint32_t enter_serial; + void *egl_surface; }; @@ -55,6 +64,7 @@ struct wlr_wl_pointer { }; void wlr_wl_registry_poll(struct wlr_wl_backend *backend); +void wlr_wl_output_update_cursor(struct wlr_wl_backend_output *output, uint32_t serial); struct wlr_wl_backend_output *wlr_wl_output_for_surface( struct wlr_wl_backend *backend, struct wl_surface *surface); -- cgit v1.2.3