backends/drm: apply changes after setting initial mode

If the changed mode isn't applied, it might be reverted if an atomic commit
fails
This commit is contained in:
Xaver Hugl 2022-04-05 00:51:37 +02:00
parent 4b9fc5f9ce
commit 08324f0924

View file

@ -344,6 +344,7 @@ bool DrmConnector::updateProperties()
} else {
if (!m_pipeline->pending.mode) {
m_pipeline->pending.mode = m_modes.constFirst();
m_pipeline->applyPendingChanges();
}
if (m_pipeline->output()) {
m_pipeline->output()->updateModes();