noop: Return seat0 as the seat name

wlroots' libinput backend expects the name of the seat to either match
ID_SEAT from udev, or in case ID_SEAT returns nothing, match seat0. As
noop has no seat switching, always returning seat0 as the session name
fixes that.

Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
This commit is contained in:
Anna (navi) Figueiredo Gomes 2023-03-30 07:58:49 -03:00 committed by Kenny Levinsen
parent 3e0d510b2c
commit e5b018def8

View file

@ -46,7 +46,7 @@ static int disable_seat(struct libseat *base) {
static const char *seat_name(struct libseat *base) { static const char *seat_name(struct libseat *base) {
(void)base; (void)base;
return "noop"; return "seat0";
} }
static int open_device(struct libseat *base, const char *path, int *fd) { static int open_device(struct libseat *base, const char *path, int *fd) {