diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 21:22:59 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 21:22:59 +0200 |
commit | a8204ebceac760519d8653a10fedad6f21e8c11c (patch) | |
tree | b1acb7a4c31403d5fd15bf400cdf5ab6c1c47057 /seatd/client.c | |
parent | afc3fa4b1107793d73540d777675950014898faa (diff) |
client: Tidying
Diffstat (limited to 'seatd/client.c')
-rw-r--r-- | seatd/client.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |