aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-05-21 13:25:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-05-22 04:59:33 +0000
commit664cdcc65cf42ab269ea4a2c4962c3ee65d7e92f (patch)
treeecc87c62f954f60fbbdf8ebca77a1097166e2f5e /wayland.h
parentwayland: configure: don't commit if we have a pending refresh (diff)
cursor-shape: add 'dnd-ask' and 'all-resize'
These (non-css) cursor shapes were added to the cursor-shape-v1 protocol in wayland-protocols 1.42. We don't need (or use them at all) internally, but add them to the list we use to translate from shape names to shape enums. This allows users to set a custom shape (via OSC-22), while still using server side cursors (i.e. no need to fallback to client-side cursors). If we try to set a shape not implemented by the server, we get a protocol error and foot exits. This is bad. So, make sure we don't do that: 1. First, we need to explicitly bind v2 if implemented by the server 2. Track the bound version number in the wayland struct 3. When matching shape enum, skip shapes not supported in the currently bound version of the cursor-shape protocol
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index b7e8e79f..eb1c35a3 100644
--- a/wayland.h
+++ b/wayland.h
@@ -460,6 +460,7 @@ struct wayland {
struct wp_fractional_scale_manager_v1 *fractional_scale_manager;
struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
+ int shape_manager_version;
struct wp_single_pixel_buffer_manager_v1 *single_pixel_manager;