aboutsummaryrefslogtreecommitdiff
path: root/input.c
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 /input.c
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 'input.c')
0 files changed, 0 insertions, 0 deletions