diff options
author | nyorain <nyorain@gmail.com> | 2017-08-14 18:19:42 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-14 18:02:05 -0400 |
commit | d7dcbbc1758c29ca438dc358ca7e867d6f7a976c (patch) | |
tree | 80353bb02a35e679649d50c452e1410ac35a8d77 /include/backend | |
parent | 53052b3f6e457f35d46fc3a71bd7eac96e55a484 (diff) |
Add wayland backend cursor support
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); |