From 262740bc9a282554c8aacb001e06aeb96d0afdce Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 24 Nov 2020 12:56:53 +0100 Subject: backend/libseat: fix change_vt return value This should return true on success and false on failure not vice-versa. --- backend/session/libseat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/session') 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 = { -- cgit v1.2.3