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,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