backends/drm: don't change the configuration while KWin is terminating

This commit is contained in:
Xaver Hugl 2022-02-24 05:41:08 +01:00
parent 83d797785b
commit 8b3a6c3eb0

View file

@ -508,7 +508,7 @@ void DrmBackend::enableOutput(DrmAbstractOutput *output, bool enable)
m_placeholderFilter.reset();
}
} else {
if (m_enabledOutputs.count() == 1 && m_outputs.count() > 1) {
if (m_enabledOutputs.count() == 1 && m_outputs.count() > 1 && !kwinApp()->isTerminating()) {
auto outputs = m_outputs;
outputs.removeOne(output);
if (!readOutputsConfiguration(outputs)) {