platforms/drm: first emit outputDisabled, then remove output

The current behavior is in contradiction to the description of
Platform::outputDisabled
This commit is contained in:
Xaver Hugl 2021-08-30 15:10:28 +02:00
parent dbf4a59527
commit f4d63bb8ed

View file

@ -349,8 +349,9 @@ void DrmBackend::removeOutput(DrmAbstractOutput *o)
// placeholder doesn't actually need to render anything
m_placeHolderOutput->renderLoop()->inhibit();
}
if (m_enabledOutputs.removeOne(o)) {
if (m_enabledOutputs.contains(o)) {
Q_EMIT outputDisabled(o);
m_enabledOutputs.removeOne(o);
}
m_outputs.removeOne(o);
Q_EMIT outputRemoved(o);