diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 13:01:49 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 13:01:49 +0000 |
| commit | e00a20465b71a9c546c794e0f572b0db14810ffe (patch) | |
| tree | b2364ce0f323b3e7f339f7a68428f7fbc4c39328 /wayland.h | |
| parent | wayland: handle enum value XDG_TOPLEVEL_STATE_SUSPENDED (diff) | |
| parent | meson: 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.h | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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; |
