aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-21 12:54:13 +0100
committerSimon Ser <contact@emersion.fr>2023-02-21 12:55:26 +0100
commitc667e64892a554b9f8610997e690a6d3adb739a2 (patch)
treeeab2d2fdb3fa32f789e78dd3ca72f5566e651e71 /backend
parent7303e1380880c5506397bbd01db2cdff295c1cf2 (diff)
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
Diffstat (limited to 'backend')
-rw-r--r--backend/backend.c4
1 files changed, 3 insertions, 1 deletions
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;
}