backends/drm: Ensure current mode is always in the output mode list

This commit is contained in:
Méven Car 2024-09-05 17:28:06 +02:00
parent 0e09cb09f8
commit b751af02ea

View file

@ -235,6 +235,9 @@ void DrmOutput::updateConnectorProperties()
m_pipeline->setMode(std::static_pointer_cast<DrmConnectorMode>(next.currentMode)); m_pipeline->setMode(std::static_pointer_cast<DrmConnectorMode>(next.currentMode));
m_pipeline->applyPendingChanges(); m_pipeline->applyPendingChanges();
} }
if (!next.modes.contains(next.currentMode)) {
next.modes.push_front(next.currentMode);
}
setState(next); setState(next);
} }