Fix hotplugging for VR headsets
This commit is contained in:
parent
9acf04e2b7
commit
4890db3f16
1 changed files with 6 additions and 0 deletions
|
@ -154,6 +154,10 @@ bool DrmGpu::updateOutputs()
|
|||
delete c;
|
||||
continue;
|
||||
}
|
||||
if (!c->isConnected()) {
|
||||
delete c;
|
||||
continue;
|
||||
}
|
||||
m_connectors << c;
|
||||
} else {
|
||||
oldConnectors.removeOne(*it);
|
||||
|
@ -284,6 +288,8 @@ bool DrmGpu::updateOutputs()
|
|||
emit outputRemoved(removedOutput);
|
||||
removedOutput->teardown();
|
||||
removedOutput->m_crtc = nullptr;
|
||||
m_connectors.removeOne(removedOutput->m_conn);
|
||||
delete removedOutput->m_conn;
|
||||
removedOutput->m_conn = nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue