Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-26 | Add no-op session | Simon 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. | |||
2021-02-27 | Convert a few debug logs to error logs | Kenny Levinsen | |
2021-02-27 | logind: Fix return values from close_device/get_fd | Kenny Levinsen | |
2020-12-23 | logind: Send ReleaseControl when closing seat | Kenny Levinsen | |
This is not strictly speaking necessary as detaching from the bus should trigger this automatically, but elogind apparently has issues with this. Doing this explicitly does no harm, so let's just do that. | |||
2020-12-04 | libseat/backend/logind: stop waiting for CanGraphical | Simon Ser | |
Upstream says compositors should wait for DRM nodes using udev instead. | |||
2020-11-24 | logind: switch_session should return 0 on success | Kenny Levinsen | |
It currently returned -1 on failure and 1 on success. The API is intended to return -1 on failure and 0 on success, so fix that. | |||
2020-11-21 | libseat: log error when failing to open socket | Isaac Freund | |
The most common pain point I've seen with people trying out seat is forgetting to add themselves to whatever group the distro has chosen to own the socket. Logging this error and path of the socket should make it easier to tell why things aren't working. | |||
2020-10-11 | logind: clang-format | Kenny Levinsen | |
2020-10-10 | logind: Use seat_path for SwitchTo | Kenny Levinsen | |
2020-09-28 | logind: close_device should not close fd | Kenny Levinsen | |
2020-09-22 | libseat/seatd: Fix socket path bounds | Kenny Levinsen | |
2020-09-22 | meson: Make default seatd socket path configurable | Kenny Levinsen | |
FreeBSD and Linux have different preferred socket locations. Expose an option to set the location, and implement simple auto-logic for linux/freebsd. | |||
2020-09-22 | libseat: Execute bg events after IPC calls | Kenny Levinsen | |
If a background event was queued during call dispatch, and no unread data was left on the socket, there would be no incentive for the user to call dispatch, and as a result, the events would never be executed. Execute events at the end of IPC calls that read from the socket to avoid stalls. | |||
2020-09-22 | libseat: Dispatch all non-bg events on IPC call | Kenny Levinsen | |
Dispatch on IPC call only dispatched until the first message was successfully processed. This could lead to premature dispatch termination if a background event was received during an IPC call. Instead, continue dispatching until a non-bg opcode is reported or an error is received. | |||
2020-09-07 | libseat: Handle SERVER_ERROR correctly | Kenny Levinsen | |
The connection buffer position was erroneously rewinded before reading the protocol message when the message was a SERVER_ERROR. | |||
2020-08-31 | client: Do not leak idle clients on exit | Kenny Levinsen | |
2020-08-31 | linked_list: linked_list_take should concat lists | Kenny Levinsen | |
2020-08-30 | seatd: Remove unused device_closed msg body | Kenny Levinsen | |
2020-08-30 | linked_list: Implement linked_list_take | Kenny Levinsen | |
2020-08-29 | libseat: Check euid before using builtin | Kenny Levinsen | |
2020-08-29 | libseat: Remove pointless check | Kenny Levinsen | |
2020-08-29 | libseat: Keep track of error state | Kenny Levinsen | |
Store if an error has occurred and return -1 with ENOTCONN from all future calls, avoiding attempts to use a broken connection. | |||
2020-08-29 | libseat: Improve logging with seatd conn helpers | Kenny Levinsen | |
Add helpers around connection access to have all logging centralized and reduce code duplication. Improve existing helpers to further reduce code duplication. The seatd backend should have much better logging after this. | |||
2020-08-29 | libseat: Assert that listener is non-NULL | Kenny Levinsen | |
2020-08-28 | logind: Merge PropertiesChanged handlers | Kenny Levinsen | |
2020-08-28 | libseat: Expand logging in all backends | Kenny Levinsen | |
2020-08-24 | libseat: Remove useless logind fallbacks | Kenny 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-23 | logind: Set session type from env | Kenny Levinsen | |
2020-08-23 | logind: Remove session type check | Kenny Levinsen | |
2020-08-23 | logind: Remove useless check | Kenny Levinsen | |
2020-08-06 | logind: Allow SwitchTo for all seats | Kenny Levinsen | |
2020-08-06 | logind: close_device always returned error | Kenny 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-05 | libseat: Rename libseat_impl to seat_impl | Kenny Levinsen | |
2020-08-03 | libseat: Convert clients to linked_list | Kenny Levinsen | |
2020-08-03 | server: Stack-allocate the server | Kenny Levinsen | |
2020-08-01 | seatd: Perform clean server shutdown | Kenny Levinsen | |
2020-08-01 | FreeBSD compiler warning fix | Kenny Levinsen | |
2020-07-31 | Initial implementation of seatd and libseat | Kenny Levinsen | |