From a8204ebceac760519d8653a10fedad6f21e8c11c Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 21:22:59 +0200 Subject: client: Tidying --- seatd/client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'seatd') diff --git a/seatd/client.c b/seatd/client.c index ed018db..60e6d55 100644 --- a/seatd/client.c +++ b/seatd/client.c @@ -81,7 +81,6 @@ void client_kill(struct client *client) { }; if (client->seat != NULL) { seat_remove_client(client); - client->seat = NULL; } } @@ -91,7 +90,6 @@ void client_destroy(struct client *client) { if (client->seat != NULL) { // This should also close and remove all devices seat_remove_client(client); - client->seat = NULL; } if (client->event_source != NULL) { event_source_fd_destroy(client->event_source); @@ -478,9 +476,9 @@ int client_get_session(const struct client *client) { return -1; } if (client->seat->vt_bound) { - return client->seat->active_client->seat_vt; + return client->seat_vt; } // TODO: Store some session sequence - abort(); + errno = ENOSYS; return -1; } -- cgit v1.2.3