aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend/noop.c
AgeCommit message (Collapse)Author
2023-04-03noop: Additional open flags for `open(2)`HEADmasterAnna (navi) Figueiredo Gomes
Matching the functionallity by the seatd open call. O_NONBLOCK is specially important for libseat, otherwise it hangs while trying to drain all events from an input device fd. Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
2023-04-03noop: Return seat0 as the seat nameAnna (navi) Figueiredo Gomes
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>
2023-01-16noop: initialize initial_setupChia-I Wu
Otherwise the enable_seat callback is never called.
2022-02-09libseat: Use SOCK_CLOEXEC and SOCK_NONBLOCKKenny Levinsen
This both simplifies our code and fixes an exec fd leak when using builtin or noop backends.
2021-08-15Make libseat_seat_listener constSimon Ser
libseat will never write to that struct. Let's allow callers to make it read-only.
2021-03-26Add no-op sessionSimon Ser
This is useful for headless testing, for instance with VKMS: modprobe vkms export WLR_DRM_DEVICES=/dev/dri/card1 export WLR_BACKENDS=drm export LIBSEAT_BACKEND=noop sway We don't need any of the VT handling in this case.