aboutsummaryrefslogtreecommitdiff
path: root/backend/session
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-11-24 12:56:53 +0100
committerSimon Ser <contact@emersion.fr>2020-11-24 13:09:13 +0100
commit262740bc9a282554c8aacb001e06aeb96d0afdce (patch)
tree6a97e80238d7e4b948fae06d1189727e44e9687e /backend/session
parentebecc5404b899b462f4c414663780ba72adbab28 (diff)
backend/libseat: fix change_vt return value
This should return true on success and false on failure not vice-versa.
Diffstat (limited to 'backend/session')
-rw-r--r--backend/session/libseat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/session/libseat.c b/backend/session/libseat.c
index 180ce215..f3ad789c 100644
--- a/backend/session/libseat.c
+++ b/backend/session/libseat.c
@@ -203,7 +203,7 @@ static void libseat_session_close_device(struct wlr_session *base, int fd) {
static bool libseat_change_vt(struct wlr_session *base, unsigned vt) {
struct libseat_session *session = libseat_session_from_session(base);
- return libseat_switch_session(session->seat, vt);
+ return libseat_switch_session(session->seat, vt) == 0;
}
const struct session_impl session_libseat = {