mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-28 05:40:16 -04:00
parent
66313efb01
commit
8f3b22b3ae
1 changed files with 5 additions and 2 deletions
7
seat.c
7
seat.c
|
|
@ -116,9 +116,10 @@ update_capabilities(struct cg_seat *seat) {
|
|||
if (!wl_list_empty(&seat->touch)) {
|
||||
caps |= WL_SEAT_CAPABILITY_TOUCH;
|
||||
}
|
||||
wlr_seat_set_capabilities(seat->seat, caps);
|
||||
|
||||
/* Hide cursor if the seat doesn't have pointer capability. */
|
||||
/* Hide cursor if the seat doesn't have pointer capability.
|
||||
* This must be called while the wlr_seat has the capability
|
||||
* otherwise it's a no-op. */
|
||||
if ((caps & WL_SEAT_CAPABILITY_POINTER) == 0) {
|
||||
wlr_cursor_set_image(seat->cursor, NULL, 0, 0, 0, 0, 0, 0);
|
||||
} else {
|
||||
|
|
@ -126,6 +127,8 @@ update_capabilities(struct cg_seat *seat) {
|
|||
DEFAULT_XCURSOR,
|
||||
seat->cursor);
|
||||
}
|
||||
|
||||
wlr_seat_set_capabilities(seat->seat, caps);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue