aboutsummaryrefslogtreecommitdiff
path: root/seatd/seat.c
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-07-31 13:28:24 +0200
committerKenny Levinsen <kl@kl.wtf>2020-07-31 13:29:05 +0200
commit1d188d2f09bb272feb11ad56de7594fb1ac58fdc (patch)
tree73755637de5b4f9f5f44359a5832cc2314896cb9 /seatd/seat.c
parent6a01725294598bab3a1a426174d3c3d2ac9ea449 (diff)
seat: remove_client return value was inverted
Diffstat (limited to 'seatd/seat.c')
-rw-r--r--seatd/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/seatd/seat.c b/seatd/seat.c
index ab0e338..eb17e7b 100644
--- a/seatd/seat.c
+++ b/seatd/seat.c
@@ -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) {