aboutsummaryrefslogtreecommitdiff
path: root/session
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-07-11 18:51:19 +1200
committerScott Anderson <ascent12@hotmail.com>2017-08-06 13:25:26 +1200
commitae4478e17f56c1fb52a77d1f034387f154eddef5 (patch)
treee2318946e5679221ceff80710905d348a8dd96da /session
parent41b98f21e50a6d57ba4b7fd8ba90066bba614e6a (diff)
Changed ownership of wlr_session to the multi backend.
Currently breaks VT switching for examples.
Diffstat (limited to 'session')
-rw-r--r--session/session.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/session/session.c b/session/session.c
index 6f6aa2ea..3f4c7910 100644
--- a/session/session.c
+++ b/session/session.c
@@ -30,6 +30,10 @@ struct wlr_session *wlr_session_start(struct wl_display *disp) {
}
void wlr_session_finish(struct wlr_session *session) {
+ if (!session) {
+ return;
+ }
+
session->impl->finish(session);
};
@@ -42,5 +46,9 @@ void wlr_session_close_file(struct wlr_session *session, int fd) {
}
bool wlr_session_change_vt(struct wlr_session *session, unsigned vt) {
+ if (!session) {
+ return false;
+ }
+
return session->impl->change_vt(session, vt);
}