aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-06-23 19:54:35 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-07-02 22:42:37 +0000
commitbb91787b5f0fb0993bb84f0a2aa9202183e579ff (patch)
treeea18e88da86f6647fc4dd0aabba1927bec7e25ea
parentbbd53b3b46312840f1e699c7a8c49ccadfc438b4 (diff)
cursor: stop using set_image() in wlr_cursor_unset_image()
set_image() will go away.
-rw-r--r--types/wlr_cursor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c
index 889339ec..f00593c2 100644
--- a/types/wlr_cursor.c
+++ b/types/wlr_cursor.c
@@ -428,8 +428,11 @@ void wlr_cursor_set_image(struct wlr_cursor *cur, const uint8_t *pixels,
}
}
+static void cursor_update_outputs(struct wlr_cursor *cur);
+
void wlr_cursor_unset_image(struct wlr_cursor *cur) {
- wlr_cursor_set_image(cur, NULL, 0, 0, 0, 0, 0, 0);
+ cursor_reset_image(cur);
+ cursor_update_outputs(cur);
}
static void output_cursor_set_xcursor_image(struct wlr_cursor_output_cursor *output_cursor, size_t i);