aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-07-03 13:01:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 13:01:49 +0000
commite00a20465b71a9c546c794e0f572b0db14810ffe (patch)
treeb2364ce0f323b3e7f339f7a68428f7fbc4c39328 /wayland.h
parentwayland: handle enum value XDG_TOPLEVEL_STATE_SUSPENDED (diff)
parentmeson: move cursor-shape.{c,h} from ‘foot’ binary to vtlib (diff)
Merge branch 'cursor-shape'
Closes #1379
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/wayland.h b/wayland.h
index e2d22031..d2c1ead1 100644
--- a/wayland.h
+++ b/wayland.h
@@ -28,6 +28,7 @@
#include <fcft/fcft.h>
#include <tllist.h>
+#include "cursor-shape.h"
#include "fdm.h"
/* Forward declarations */
@@ -145,13 +146,21 @@ struct seat {
struct {
uint32_t serial;
+ /* Client-side cursor */
struct wayl_surface surface;
struct wl_cursor_theme *theme;
struct wl_cursor *cursor;
+
+ /* Server-side cursor */
+#if defined(HAVE_CURSOR_SHAPE)
+ struct wp_cursor_shape_device_v1 *shape_device;
+#endif
+
float scale;
bool hidden;
+ enum cursor_shape shape;
+ char *last_custom_xcursor;
- const char *xcursor;
struct wl_callback *xcursor_callback;
bool xcursor_pending;
} pointer;
@@ -425,6 +434,10 @@ struct wayland {
struct xdg_activation_v1 *xdg_activation;
#endif
+#if defined(HAVE_CURSOR_SHAPE)
+ struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
+#endif
+
bool presentation_timings;
struct wp_presentation *presentation;
uint32_t presentation_clock_id;