summaryrefslogtreecommitdiffstats
path: root/include/client
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-11-18 19:38:42 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-11-18 19:38:42 -0500
commit7a40eb6de646ffd50aa7b5b60f3c05273c0a6951 (patch)
treeaa3cac15c63d8af7cbb9598163a1f41db5738241 /include/client
parentGenerate protocol headers (diff)
downloadsway-7a40eb6de646ffd50aa7b5b60f3c05273c0a6951.tar.gz
sway-7a40eb6de646ffd50aa7b5b60f3c05273c0a6951.tar.zst
sway-7a40eb6de646ffd50aa7b5b60f3c05273c0a6951.zip
Support cursors over wayland clients
Apparently wayland has fucking client-side cursors, too
Diffstat (limited to 'include/client')
-rw-r--r--include/client/client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/client/client.h b/include/client/client.h
index 5b24d315..b823235b 100644
--- a/include/client/client.h
+++ b/include/client/client.h
@@ -22,6 +22,13 @@ struct buffer {
22 bool busy; 22 bool busy;
23}; 23};
24 24
25struct cursor {
26 struct wl_surface *surface;
27 struct wl_cursor_theme *cursor_theme;
28 struct wl_cursor *cursor;
29 struct wl_poitner *pointer;
30};
31
25struct client_state { 32struct client_state {
26 struct wl_compositor *compositor; 33 struct wl_compositor *compositor;
27 struct wl_display *display; 34 struct wl_display *display;
@@ -34,6 +41,7 @@ struct client_state {
34 struct wl_surface *surface; 41 struct wl_surface *surface;
35 struct wl_shell_surface *shell_surface; 42 struct wl_shell_surface *shell_surface;
36 struct wl_callback *frame_cb; 43 struct wl_callback *frame_cb;
44 struct cursor cursor;
37 uint32_t width, height; 45 uint32_t width, height;
38 cairo_t *cairo; 46 cairo_t *cairo;
39 list_t *outputs; 47 list_t *outputs;