This commit is contained in:
Andre-85 2026-04-28 20:17:18 +02:00 committed by GitHub
commit 97a8f18ec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

5
seat.c
View file

@ -816,9 +816,10 @@ seat_create(struct cg_server *server, struct wlr_backend *backend)
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) {
wlr_log(WLR_ERROR, "Cannot allocate seat0");
wlr_log(WLR_ERROR, "Cannot allocate %s", seat_name);
free(seat);
return NULL;
}