Kenny Levinsen
6e7a1db32d
logind: Remove redundant null check
2021-08-15 13:34:26 +02:00
Simon Ser
166feaea33
Make libseat_seat_listener const
...
libseat will never write to that struct. Let's allow callers to
make it read-only.
2021-08-15 13:33:30 +02:00
Kenny Levinsen
6444da6093
libseat: Rename dispatch_background in backends
...
This name never made much sense. dispatch_and_execute is more
meaningful, especially when compared to the non-executing dispatch
function.
2021-07-09 00:16:10 +02:00
Kenny Levinsen
6cf751af2b
logind: Fix return values from close_device/get_fd
2021-02-27 19:35:01 +01:00
Kenny Levinsen
61b086511f
logind: Send ReleaseControl when closing seat
...
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-23 00:34:02 +01:00
Simon Ser
e3a357bade
libseat/backend/logind: stop waiting for CanGraphical
...
Upstream says compositors should wait for DRM nodes using udev instead.
2020-12-04 23:39:39 +01:00
Kenny Levinsen
1dbf100205
logind: switch_session should return 0 on success
...
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-24 13:12:31 +01:00
Kenny Levinsen
7d785ea993
logind: clang-format
2020-10-11 01:41:34 +02:00
Kenny Levinsen
daffed0955
logind: Use seat_path for SwitchTo
2020-10-10 19:39:28 +02:00
Kenny Levinsen
7bf91a5f9f
logind: close_device should not close fd
2020-09-28 18:53:38 +02:00
Kenny Levinsen
6e6903829e
logind: Merge PropertiesChanged handlers
2020-08-28 22:55:25 +02:00
Kenny Levinsen
74eee486fa
libseat: Expand logging in all backends
2020-08-28 22:55:10 +02:00
Kenny Levinsen
ab4b961492
libseat: Remove useless logind fallbacks
...
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-24 02:55:14 +02:00
Kenny Levinsen
26aff21058
logind: Set session type from env
2020-08-23 20:13:05 +02:00
Kenny Levinsen
8ab3fc03aa
logind: Remove session type check
2020-08-23 20:12:51 +02:00
Kenny Levinsen
24c66d8c08
logind: Remove useless check
2020-08-23 20:12:29 +02:00
Kenny Levinsen
7d2668e360
logind: Allow SwitchTo for all seats
2020-08-06 02:25:24 +02:00
Kenny Levinsen
0fd525e85e
logind: close_device always returned error
...
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-06 02:25:24 +02:00
Kenny Levinsen
3586530d81
libseat: Rename libseat_impl to seat_impl
2020-08-05 23:41:55 +02:00
Kenny Levinsen
e25688fed6
libseat: Convert clients to linked_list
2020-08-03 02:49:04 +02:00
Kenny Levinsen
61716a2c77
Initial implementation of seatd and libseat
2020-07-31 00:22:18 +02:00