backends/drm: Ensure current mode is always in the output mode list
This commit is contained in:
parent
0e09cb09f8
commit
b751af02ea
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue