aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-23 18:56:09 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-06-30 17:24:44 +0000
commitc46fabe45ccb703b65a05043388381ba013a4f16 (patch)
treecf75e31b977f0ae3a3c1cc51898b964ed03cc1a4
parentf0b8a686544338ce24e305989676bff4d06221be (diff)
downloadwlroots-c46fabe45ccb703b65a05043388381ba013a4f16.tar.xz
cursor: use wlr_cursor_unset_image() in wlr_cursor_set_surface()
-rw-r--r--types/wlr_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c
index a9c9720f..141e8eea 100644
--- a/types/wlr_cursor.c
+++ b/types/wlr_cursor.c
@@ -520,7 +520,7 @@ static void output_cursor_output_handle_output_commit(
void wlr_cursor_set_surface(struct wlr_cursor *cur, struct wlr_surface *surface,
int32_t hotspot_x, int32_t hotspot_y) {
if (surface == NULL) {
- wlr_cursor_set_image(cur, NULL, 0, 0, 0, 0, 0, 0);
+ wlr_cursor_unset_image(cur);
return;
}