diff --git a/seat.c b/seat.c index 5f659a4..de2b22a 100644 --- a/seat.c +++ b/seat.c @@ -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("XDG_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; }