aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-06-15 18:43:09 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-06-19 19:48:53 +0200
commit6f1a3b6652b94b568b32f2875e5dc3c61a14d71c (patch)
treee4b61f3b7ef5571ecf3703272fbf55a3408dbab8 /sway/input/cursor.c
parentrender: Use wlroots scale filter (diff)
downloadsway-6f1a3b6652b94b568b32f2875e5dc3c61a14d71c.tar.gz
sway-6f1a3b6652b94b568b32f2875e5dc3c61a14d71c.tar.zst
sway-6f1a3b6652b94b568b32f2875e5dc3c61a14d71c.zip
Use wlr_cursor_set_xcursor()
wlr_xcursor_manager_set_cursor_image() is deprecated. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4170
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index d8ec11ac..684bb1d3 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -1070,8 +1070,7 @@ void cursor_set_image(struct sway_cursor *cursor, const char *image,
1070 if (!image) { 1070 if (!image) {
1071 wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0); 1071 wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0);
1072 } else if (!current_image || strcmp(current_image, image) != 0) { 1072 } else if (!current_image || strcmp(current_image, image) != 0) {
1073 wlr_xcursor_manager_set_cursor_image(cursor->xcursor_manager, image, 1073 wlr_cursor_set_xcursor(cursor->cursor, cursor->xcursor_manager, image);
1074 cursor->cursor);
1075 } 1074 }
1076} 1075}
1077 1076