aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/backend/session.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-06 11:14:49 +0100
committerSimon Ser <contact@emersion.fr>2020-11-19 22:47:49 +0100
commitfbf11a41e135c2b380ce51c9c90278dbcfc60c3d (patch)
tree4ac51ed85190c6b299b68b5d83f924b65c93e545 /include/wlr/backend/session.h
parent76bcddf071454cd373bd09e2619c0cb03a377350 (diff)
backend/session: wait for DRM device if none found
Wait for a DRM device if none is found in wlr_session_find_gpus. This can happen if the compositor is loaded before the display kernel driver. This supersedes the logind CanGraphical property. To test, e.g. with i915 and sway: rmmod -f i915 sway & modprobe i915 Closes: https://github.com/swaywm/wlroots/issues/2093
Diffstat (limited to 'include/wlr/backend/session.h')
-rw-r--r--include/wlr/backend/session.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/backend/session.h b/include/wlr/backend/session.h
index b63c356c..692d7be1 100644
--- a/include/wlr/backend/session.h
+++ b/include/wlr/backend/session.h
@@ -40,6 +40,7 @@ struct wlr_session {
struct wl_list devices;
+ struct wl_display *display;
struct wl_listener display_destroy;
struct {