summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-06-15 18:44:40 +0200
committerFurkan Sahin <furkan-dev@proton.me>2023-06-15 18:44:40 +0200
commitfa8e11ee0ef3ff86515a3c941ed38cc6c059c007 (patch)
tree3dcd7b1c531abfeb5105ca77969cb5ec26ddc71b
parent59dccf921b14dec64520948a9fa85fbcab5c6b44 (diff)
Use wlr_cursor_unset_image()
A bit cleaner. References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4209
-rw-r--r--sway/input/cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 684bb1d3..abc6c554 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -252,7 +252,7 @@ void cursor_update_image(struct sway_cursor *cursor,
}
static void cursor_hide(struct sway_cursor *cursor) {
- wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0);
+ wlr_cursor_unset_image(cursor->cursor);
cursor->hidden = true;
wlr_seat_pointer_notify_clear_focus(cursor->seat->wlr_seat);
}
@@ -1068,7 +1068,7 @@ void cursor_set_image(struct sway_cursor *cursor, const char *image,
}
if (!image) {
- wlr_cursor_set_image(cursor->cursor, NULL, 0, 0, 0, 0, 0, 0);
+ wlr_cursor_unset_image(cursor->cursor);
} else if (!current_image || strcmp(current_image, image) != 0) {
wlr_cursor_set_xcursor(cursor->cursor, cursor->xcursor_manager, image);
}