aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-05-05 16:34:35 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-07-24 11:28:31 +0200
commit6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614 (patch)
treee19fefe24bfd0df60064702f7251e4d5175e2352 /include
parentfix crash when resizing tiled scratchpad windows (diff)
downloadsway-6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614.tar.gz
sway-6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614.tar.zst
sway-6bd11ad0dfb11f8cf7e0ab5330cd2488851c5614.zip
Add support for cursor-shape-v1
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4106
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/cursor.h2
-rw-r--r--include/sway/server.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h
index 1636588a..1e21c66f 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -145,4 +145,6 @@ uint32_t get_mouse_button(const char *name, char **error);
145 145
146const char *get_mouse_button_name(uint32_t button); 146const char *get_mouse_button_name(uint32_t button);
147 147
148void handle_request_set_cursor_shape(struct wl_listener *listener, void *data);
149
148#endif 150#endif
diff --git a/include/sway/server.h b/include/sway/server.h
index 0e4ec2be..1eb308a4 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -120,6 +120,8 @@ struct sway_server {
120 struct wl_listener xdg_activation_v1_request_activate; 120 struct wl_listener xdg_activation_v1_request_activate;
121 struct wl_listener xdg_activation_v1_new_token; 121 struct wl_listener xdg_activation_v1_new_token;
122 122
123 struct wl_listener request_set_cursor_shape;
124
123 struct wl_list pending_launcher_ctxs; // launcher_ctx::link 125 struct wl_list pending_launcher_ctxs; // launcher_ctx::link
124 126
125 // The timeout for transactions, after which a transaction is applied 127 // The timeout for transactions, after which a transaction is applied