From c9627dc60fd95426ebab1e9b94d0e20fe0111460 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Mon, 3 Jun 2024 21:23:03 +0200 Subject: [PATCH] backends/drm: reset edid if the property is zero Otherwise, a display without any EDID might be recognized as a display that was previously connected to the same connector --- src/backends/drm/drm_connector.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backends/drm/drm_connector.cpp b/src/backends/drm/drm_connector.cpp index e86bcfcb72..56badb41be 100644 --- a/src/backends/drm/drm_connector.cpp +++ b/src/backends/drm/drm_connector.cpp @@ -274,8 +274,11 @@ bool DrmConnector::updateProperties() if (!m_edid.isValid()) { qCWarning(KWIN_DRM) << "Couldn't parse EDID for connector" << this; } - } else if (m_conn->connection == DRM_MODE_CONNECTED) { - qCDebug(KWIN_DRM) << "Could not find edid for connector" << this; + } else { + m_edid = Edid{}; + if (m_conn->connection == DRM_MODE_CONNECTED) { + qCDebug(KWIN_DRM) << "Could not find edid for connector" << this; + } } // check the physical size