aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
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;
}