backends/drm: don't update outputs while the session isn't active
BUG: 468715
This commit is contained in:
parent
8c412c229b
commit
46c8ca34b9
1 changed files with 3 additions and 0 deletions
|
@ -218,6 +218,9 @@ void DrmGpu::initDrmResources()
|
|||
|
||||
bool DrmGpu::updateOutputs()
|
||||
{
|
||||
if (!m_isActive) {
|
||||
return false;
|
||||
}
|
||||
waitIdle();
|
||||
DrmUniquePtr<drmModeRes> resources(drmModeGetResources(m_fd));
|
||||
if (!resources) {
|
||||
|
|
Loading…
Reference in a new issue