From 96ad414ec9732e32b28f960c3bfa56a7b530b3cd Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Fri, 6 Sep 2024 21:43:33 +0200 Subject: [PATCH] backend/drm: Remove call to CRTC realloc on scan After a connector scan, new connectors might have appeared and old ones gone away. At this point, old CRTC allocations are already gone, while new allocations are not yet needed. Skip the call. --- backend/drm/drm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 1a1af309..a20442d4 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -1811,8 +1811,6 @@ void scan_drm_connectors(struct wlr_drm_backend *drm, destroy_drm_connector(conn); } - realloc_crtcs(drm, NULL); - for (size_t i = 0; i < new_outputs_len; ++i) { struct wlr_drm_connector *conn = new_outputs[i];