aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-08-14 18:21:09 -0400
committerGitHub <noreply@github.com>2017-08-14 18:21:09 -0400
commit5ca88af557178c0081fd408ae008686b79d6dd9c (patch)
tree80353bb02a35e679649d50c452e1410ac35a8d77 /include
parent53052b3f6e457f35d46fc3a71bd7eac96e55a484 (diff)
parentd7dcbbc1758c29ca438dc358ca7e867d6f7a976c (diff)
Merge pull request #87 from nyorain/wlbcursor
Implement wayland backend cursor
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h10
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);