backends/drm: don't update outputs while the session isn't active

BUG: 468715
This commit is contained in:
Xaver Hugl 2023-04-27 14:21:30 +02:00
parent 8c412c229b
commit 46c8ca34b9

View file

@ -218,6 +218,9 @@ void DrmGpu::initDrmResources()
bool DrmGpu::updateOutputs() bool DrmGpu::updateOutputs()
{ {
if (!m_isActive) {
return false;
}
waitIdle(); waitIdle();
DrmUniquePtr<drmModeRes> resources(drmModeGetResources(m_fd)); DrmUniquePtr<drmModeRes> resources(drmModeGetResources(m_fd));
if (!resources) { if (!resources) {