aboutsummaryrefslogtreecommitdiff
path: root/seatd/client.c
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2021-02-27 15:13:18 +0100
committerKenny Levinsen <kl@kl.wtf>2021-02-27 15:51:13 +0100
commit45bab8b258b1cb0ba68eff3bfc3913e1e5d84b7d (patch)
treeb5270751bd11f7a04154dc292b6c022a252924b3 /seatd/client.c
parentb1f7ec1c4d753d0135cb88347efbc11c7039b2cb (diff)
client: Replace pending_disable with state enum
This simplifies logic in seat handling.
Diffstat (limited to 'seatd/client.c')
-rw-r--r--seatd/client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/seatd/client.c b/seatd/client.c
index a5a11ab..949bbd8 100644
--- a/seatd/client.c
+++ b/seatd/client.c
@@ -73,6 +73,7 @@ struct client *client_create(struct server *server, int client_fd) {
client->session = -1;
client->server = server;
client->connection.fd = client_fd;
+ client->state = CLIENT_NEW;
linked_list_init(&client->devices);
linked_list_insert(&server->idle_clients, &client->link);
return client;