From fbf11a41e135c2b380ce51c9c90278dbcfc60c3d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Nov 2020 11:14:49 +0100 Subject: 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 --- include/wlr/backend/session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/wlr/backend/session.h') 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 { -- cgit v1.2.3