aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-28 11:25:08 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:36:32 +0000
commitc2baaff3c1311335b46e75db27bfd79d4f7b623b (patch)
tree0cd3cc27773b4dc06239f89a839058707fc32fbe /wayland.c
parentmeson: cursor-shape: use .xml from wayland-protocols (diff)
cursor-shape: use server-side cursors for custom (OSC-22), if possible
Using a lookup table, try to map the user-provided xcursor string to a cursor-shape-v1 known shape. If we succeed, set the user’s custom cursor using server side cursors (i.e. using cursor-shape-v1). If not, fallback to trying to load the image ourselves (using wl_cursor_theme_get_cursor()), and set it using the legacy wl_pointer_set_cursor().
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index f3a5619d..e862b5e8 100644
--- a/wayland.c
+++ b/wayland.c
@@ -234,6 +234,7 @@ seat_destroy(struct seat *seat)
ime_reset_pending(seat);
free(seat->clipboard.text);
free(seat->primary.text);
+ free(seat->pointer.last_custom_xcursor);
free(seat->name);
}