seat: New cursor/xcursor interface

This commit is contained in:
Kenny Levinsen 2023-09-30 13:40:54 +02:00 committed by Simon Ser
parent 2d4b7a4e23
commit b55e40ad9d

4
seat.c
View file

@ -128,9 +128,9 @@ update_capabilities(struct cg_seat *seat)
/* Hide cursor if the seat doesn't have pointer capability. */ /* Hide cursor if the seat doesn't have pointer capability. */
if ((caps & WL_SEAT_CAPABILITY_POINTER) == 0) { 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 { } 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);
} }
} }