From b55e40ad9dcd6d9488d4c56ee8ca9582d5d5df0e Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Sat, 30 Sep 2023 13:40:54 +0200 Subject: [PATCH] seat: New cursor/xcursor interface --- seat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seat.c b/seat.c index 5e1beaf..fed1292 100644 --- a/seat.c +++ b/seat.c @@ -128,9 +128,9 @@ update_capabilities(struct cg_seat *seat) /* Hide cursor if the seat doesn't have pointer capability. */ if ((caps & WL_SEAT_CAPABILITY_POINTER) == 0) { - wlr_cursor_set_image(seat->cursor, NULL, 0, 0, 0, 0, 0, 0); + wlr_cursor_unset_image(seat->cursor); } else { - wlr_xcursor_manager_set_cursor_image(seat->xcursor_manager, DEFAULT_XCURSOR, seat->cursor); + wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager, DEFAULT_XCURSOR); } }