platforms/drm: Fix outputDisabled signal

The outputDisabled() signal must be emitted **after** removing the
output from a list of enabled outputs.
icc-effect-5.26.4
Vlad Zahorodnii 2021-08-31 08:36:28 +03:00
parent b0c26cc424
commit d70cfadf96
1 changed files with 1 additions and 1 deletions

View File

@ -350,8 +350,8 @@ void DrmBackend::removeOutput(DrmAbstractOutput *o)
m_placeHolderOutput->renderLoop()->inhibit();
}
if (m_enabledOutputs.contains(o)) {
Q_EMIT outputDisabled(o);
m_enabledOutputs.removeOne(o);
Q_EMIT outputDisabled(o);
}
m_outputs.removeOne(o);
Q_EMIT outputRemoved(o);