seat: remove_client return value was inverted

This commit is contained in:
Kenny Levinsen 2020-07-31 13:28:24 +02:00
parent 6a01725294
commit 1d188d2f09

View file

@ -106,7 +106,7 @@ int seat_remove_client(struct seat *seat, struct client *client) {
client->seat = NULL;
log_debug("removed client");
return found ? -1 : 0;
return found ? 0 : -1;
}
struct seat_device *seat_find_device(struct client *client, int device_id) {