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,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()) {
|
||||
|
|
Loading…
Reference in a new issue