backend/libseat: fix change_vt return value

This should return true on success and false on failure not vice-versa.
This commit is contained in:
Isaac Freund 2020-11-24 12:56:53 +01:00 committed by Simon Ser
parent ebecc5404b
commit 262740bc9a

View file

@ -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) { static bool libseat_change_vt(struct wlr_session *base, unsigned vt) {
struct libseat_session *session = libseat_session_from_session(base); 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 = { const struct session_impl session_libseat = {