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:
parent
8c908c69bc
commit
d83da1cdac
1 changed files with 0 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue