aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-28terminal: Construct TTY paths correctly on FreeBSDKenny Levinsen
FreeBSD TTY paths are contructed in the kernel using the %r formatter, which in this case ends up being a base 32 encoding. The base 32 implementation is taken more or less directly from wlroots commit fc6c0ca12e94.
2020-08-28terminal: FreeBSD VT num is 1 higher than tty numKenny Levinsen
This was causing all VT and TTY changes to be applied to the wrong TTY.
2020-08-28terminal: Set K_RAW and term raw mode on FreeBSDKenny Levinsen
Taken from X11, weston and consolekit2 ports for FreeBSD. Setting just K_CODE as done before makes input seemingly have no ill effects, but it is still buffered and possibly send to the terminal after application exit if stdin is never drained. Setting raw mode appears to be needed to solve that issue. A K_OFF-like VT keyboard setting like Linux has would seem more appropriate, but that is not currently available to us on FreeBSD.
2020-08-28simpletest: Set log level to debugKenny Levinsen
2020-08-28Introduce libseat_set_log_levelSimon Ser
The default level is SILENT. log_init no longer takes an initial log level (so that calls to libseat_set_log_level prior to log_init work correctly).
2020-08-28Nuke LIBSEAT_LOGLEVELSimon Ser
This will be replaced with a libseat API to set the log level.
2020-08-28Introduce libseat_set_log_handlerSimon Ser
This allows libseat users to register a custom logging function.
2020-08-28Rename enum log_level to libseat_log_levelSimon Ser
This is preparatory work for exposing a public function to set libseat's log handler.
2020-08-24libseat: Remove useless logind fallbacksKenny Levinsen
The logind code is based on the wlroots implementation, which in turn contained copy-paste code from Mutter that serves no purpose here.
2020-08-23logind: Set session type from envKenny Levinsen
2020-08-23logind: Remove session type checkKenny Levinsen
2020-08-23logind: Remove useless checkKenny Levinsen
2020-08-22meson: Set license to MITKenny Levinsen
2020-08-08seatd: Use path-based chmod/chownKenny Levinsen
The fd variants do not seem to work for sockets
2020-08-08ci: Install scdoc for alpine and archlinuxKenny Levinsen
2020-08-08man: Add simple seatd(1) pageKenny Levinsen
2020-08-08build: check for libelogind before libsystemdIsaac Freund
elogind provides a libsystemd wrapper which is packaged by some distros. For whatever reason using this wrapper instead of libelogind directly causes compiler warnings to pop up. Checking for libelogind first ensures that this wrapper is not used.
2020-08-07contrib: Add example systemd serviceKenny Levinsen
2020-08-07seatd: Add command-line argumentsKenny Levinsen
2020-08-06ci: Run unittests on all platformsKenny Levinsen
2020-08-06linked_list: Add unittestKenny Levinsen
2020-08-06logind: Allow SwitchTo for all seatsKenny Levinsen
2020-08-06logind: close_device always returned errorKenny Levinsen
Error handling was broken in close_device, always returning -1. Use the return value, and add a few errno assignments while we're at it.
2020-08-05libseat: Fix doc typoKenny Levinsen
2020-08-05libseat: Rename libseat_impl to seat_implKenny Levinsen
2020-08-05log: Remove libseat prefixesKenny Levinsen
2020-08-05Remove pointless compiler.hKenny Levinsen
2020-08-04linked_list: Assert initialized list in linked_list_emptyKenny Levinsen
2020-08-04seat: Fix device double-removeKenny Levinsen
2020-08-04seatd: Unlink default seatd socket on startupKenny Levinsen
2020-08-04server: Gracefully shut down on errorKenny Levinsen
2020-08-04client: Sanitize shutdown/kill mechanismKenny Levinsen
2020-08-03client: TidyingKenny Levinsen
2020-08-03seat: Enable VT process switching when switching awayKenny Levinsen
2020-08-03seat: Add VT cleanup on switch to empty VTKenny Levinsen
VTs were being cleaned up the active client of a VT went away, or if we were acking a kernel VT switch request. However, no cleanup was done if the user had reqested a session switch to a different VT. Duplicate the VT cleanup to the VT switch condition.
2020-08-03libseat: Use LIBSEAT_LOGLEVEL instead of SEATD_LOGLEVELKenny Levinsen
2020-08-03libseat: Convert clients to linked_listKenny Levinsen
2020-08-03seat: Convert client list to linked listKenny Levinsen
2020-08-03seat: Convert device list to linked listKenny Levinsen
2020-08-03linked_list: Initial implementationKenny Levinsen
2020-08-03server: Stack-allocate the serverKenny Levinsen
2020-08-03poller: Inline the poller into the server structKenny Levinsen
2020-08-03poller: Remove unnecessary poll_impl abstractionKenny Levinsen
2020-08-03libseat: Remove unused stdarg.h importKenny Levinsen
2020-08-03compiler: Rename erroneous header-guardKenny Levinsen
2020-08-03terminal: Remove unused prototypesKenny Levinsen
2020-08-03list: Make list_concat argument constKenny Levinsen
2020-08-03client: Prefix notification methods with 'send'Kenny Levinsen
2020-08-03libseat: Use symbol file instead of -fvisibilityKenny Levinsen
2020-08-02seat: Deactivate devices before sending disableKenny Levinsen
Previously, seatd would not deactivate devices until the client had acked the disable. In once instance, this lead to libinput spending significant time checking and closing each input device. As a workaround, mimick logind's behavior of deactivating devices first. The original behavior can be reintroduced if the client-side problem is fixed. Closes: https://todo.sr.ht/~kennylevinsen/seatd/5