aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2018-09-24 23:17:08 +0200
committernyorain <nyorain@gmail.com>2018-09-24 23:35:09 +0200
commit7b523884249f904f45b1e9a7eae8152c2ac1248d (patch)
tree1f8c365bb0cf86c1f3344376b3e81e16dce5a1c7 /include/backend
parent5b687b4a9676448148aa8da1917b849857aae78f (diff)
Rework session handling
Sessions can now be retrieved from a backend in a more general manner. Multi-backend gets back its `session` field that contains the session if one was created, removing the interfacing from multi backend with the drm backend directly. This adds the possibility to use sessions even without the drm backend. It additionally fixes the bug that 2 session objects got created when WLR_BACKENDS were set to "libinput,drm". To allow vt switching without drm backend (and drm fd) on logind, start listening to PropertiesChanged signals from dbus and parse the session "Active" property when no master fd was created (this does not change current drm backend behaviour in any way).
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/multi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/multi.h b/include/backend/multi.h
index c57c48f3..2f5f1bd4 100644
--- a/include/backend/multi.h
+++ b/include/backend/multi.h
@@ -8,6 +8,7 @@
struct wlr_multi_backend {
struct wlr_backend backend;
+ struct wlr_session *session;
struct wl_list backends;