platforms/drm: remove redundant check for placeholder output

It's not necessary, the placeholder output already gets created in DrmBackend::removeOutput
if necessary. More improtantly it's missing the check for shutdown, which
may cause issues if the computer is turned off while no outputs are connected.
This commit is contained in:
Xaver Hugl 2021-10-03 16:32:10 +02:00
parent 8c908c69bc
commit d83da1cdac

View file

@ -355,13 +355,6 @@ void DrmBackend::updateOutputs()
}
}
if (m_outputs.isEmpty()) {
qCDebug(KWIN_DRM) << "adding placeholder output";
m_placeHolderOutput = primaryGpu()->createVirtualOutput();
// placeholder doesn't actually need to render anything
m_placeHolderOutput->renderLoop()->inhibit();
}
std::sort(m_outputs.begin(), m_outputs.end(), [] (DrmAbstractOutput *a, DrmAbstractOutput *b) {
auto da = qobject_cast<DrmOutput *>(a);
auto db = qobject_cast<DrmOutput *>(b);