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:
parent
a56b16e2ff
commit
c9627dc60f
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue