client: Remove unnecessary active_client check

This commit is contained in:
Kenny Levinsen 2020-09-18 15:13:09 +02:00
parent 6747c5f3f8
commit d16122e98a

View file

@ -295,13 +295,6 @@ static int handle_disable_seat(struct client *client) {
return -1; return -1;
} }
struct seat *seat = client->seat;
if (seat->active_client != client) {
log_info("client is not currently active");
errno = EPERM;
goto error;
}
if (seat_ack_disable_client(client) == -1) { if (seat_ack_disable_client(client) == -1) {
goto error; goto error;
} }