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
This commit is contained in:
Simon Ser 2020-11-06 11:14:49 +01:00
parent 76bcddf071
commit fbf11a41e1
2 changed files with 61 additions and 5 deletions

View file

@ -40,6 +40,7 @@ struct wlr_session {
struct wl_list devices;
struct wl_display *display;
struct wl_listener display_destroy;
struct {