Changed ownership of wlr_session to the multi backend.

Currently breaks VT switching for examples.
This commit is contained in:
Scott Anderson 2017-07-11 18:51:19 +12:00
parent 41b98f21e5
commit ae4478e17f
7 changed files with 59 additions and 30 deletions

View file

@ -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);
}