aboutsummaryrefslogtreecommitdiff
path: root/seatd/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'seatd/seat.c')
-rw-r--r--seatd/seat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/seatd/seat.c b/seatd/seat.c
index 66b623d..b530a36 100644
--- a/seatd/seat.c
+++ b/seatd/seat.c
@@ -149,9 +149,8 @@ int seat_add_client(struct seat *seat, struct client *client) {
log_debugf("registered client %p as session %d", (void *)client, client->session);
client->seat = seat;
-
- linked_list_insert(&seat->clients, &client->link);
log_debug("added client");
+
return 0;
}
@@ -160,10 +159,6 @@ int seat_remove_client(struct client *client) {
assert(client->seat);
struct seat *seat = client->seat;
-
- // We must first remove the client to avoid reactivation
- linked_list_remove(&client->link);
-
if (seat->next_client == client) {
seat->next_client = NULL;
}