Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
4890db3f
Commit
4890db3f
authored
Feb 05, 2021
by
Xaver Hugl
Browse files
Fix hotplugging for VR headsets
parent
9acf04e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/platforms/drm/drm_gpu.cpp
View file @
4890db3f
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment