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