From c667e64892a554b9f8610997e690a6d3adb739a2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Feb 2023 12:54:13 +0100 Subject: [PATCH] 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 --- backend/backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/backend.c b/backend/backend.c index c84cb063..a439a8f4 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -233,7 +233,9 @@ static bool attempt_drm_backend(struct wl_display *display, return NULL; } - drm_backend_monitor_create(backend, primary_drm, session); + if (getenv("WLR_DRM_DEVICES") == NULL) { + drm_backend_monitor_create(backend, primary_drm, session); + } return true; }