mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-05-23 21:38:00 -04:00
Merge 9d8ec5983a into bed2ff5afe
This commit is contained in:
commit
97a8f18ec1
1 changed files with 3 additions and 2 deletions
5
seat.c
5
seat.c
|
|
@ -816,9 +816,10 @@ seat_create(struct cg_server *server, struct wlr_backend *backend)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
seat->seat = wlr_seat_create(server->wl_display, "seat0");
|
const char *seat_name = getenv("CAGE_SEAT") ?: "seat0";
|
||||||
|
seat->seat = wlr_seat_create(server.wl_display, seat_name);
|
||||||
if (!seat->seat) {
|
if (!seat->seat) {
|
||||||
wlr_log(WLR_ERROR, "Cannot allocate seat0");
|
wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name);
|
||||||
free(seat);
|
free(seat);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue