platforms/drm: drop connector name from modelName with serial

The connector name is not relevant to applications or
users - expectation is that the same physical monitor always gets the
same name, regardless of how it's connected. If no serial is available,
fall back to the old scheme to prevent multiple connected outputs from
having the same name.
This commit is contained in:
Xaver Hugl 2021-04-05 01:45:02 +02:00
parent 002c4612e3
commit b2653c45c8

View file

@ -122,7 +122,11 @@ QString DrmConnector::connectorName() const
QString DrmConnector::modelName() const
{
return connectorName() + m_edid.nameString();
if (m_edid.serialNumber().isEmpty()) {
return connectorName() + QLatin1Char('-') + m_edid.nameString();
} else {
return m_edid.nameString();
}
}
bool DrmConnector::isInternal() const