cursor: use wlr_cursor_unset_image() in wlr_cursor_set_surface()

This commit is contained in:
Simon Ser 2023-06-23 18:56:09 +02:00 committed by Alexander Orzechowski
parent f0b8a68654
commit c46fabe45c

View File

@ -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, void wlr_cursor_set_surface(struct wlr_cursor *cur, struct wlr_surface *surface,
int32_t hotspot_x, int32_t hotspot_y) { int32_t hotspot_x, int32_t hotspot_y) {
if (surface == NULL) { if (surface == NULL) {
wlr_cursor_set_image(cur, NULL, 0, 0, 0, 0, 0, 0); wlr_cursor_unset_image(cur);
return; return;
} }