mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
seat: New cursor/xcursor interface
This commit is contained in:
parent
2d4b7a4e23
commit
b55e40ad9d
1 changed files with 2 additions and 2 deletions
4
seat.c
4
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue