mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
backend: disable DRM backend monitor when WLR_DRM_DEVICES is used
WLR_DRM_DEVICES specifies a static list of DRM devices to open at startup. Do not create DRM backends for hotplugged DRM devices when it's set. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3595
This commit is contained in:
parent
7303e13808
commit
c667e64892
1 changed files with 3 additions and 1 deletions
|
@ -233,7 +233,9 @@ static bool attempt_drm_backend(struct wl_display *display,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (getenv("WLR_DRM_DEVICES") == NULL) {
|
||||||
drm_backend_monitor_create(backend, primary_drm, session);
|
drm_backend_monitor_create(backend, primary_drm, session);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue