aboutsummaryrefslogtreecommitdiff
path: root/libseat/backend/logind.c
diff options
context:
space:
mode:
Diffstat (limited to 'libseat/backend/logind.c')
-rw-r--r--libseat/backend/logind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libseat/backend/logind.c b/libseat/backend/logind.c
index 76297ce..f0cadce 100644
--- a/libseat/backend/logind.c
+++ b/libseat/backend/logind.c
@@ -172,7 +172,7 @@ static int switch_session(struct libseat *base, int s) {
sd_bus_error_free(&error);
sd_bus_message_unref(msg);
- return ret >= 0;
+ return ret < 0 ? -1 : 0;
}
static int disable_seat(struct libseat *base) {