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
This commit is contained in:
Xaver Hugl 2024-06-03 21:23:03 +02:00
parent a56b16e2ff
commit c9627dc60f

View file

@ -274,9 +274,12 @@ 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) {
} 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
if (m_edid.physicalSize().isEmpty()) {