From 46c8ca34b9199added63dac2f69f6f5f102b1203 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Thu, 27 Apr 2023 14:21:30 +0200 Subject: [PATCH] backends/drm: don't update outputs while the session isn't active BUG: 468715 --- src/backends/drm/drm_gpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/drm/drm_gpu.cpp b/src/backends/drm/drm_gpu.cpp index 6771ae1f17..f2c4618d20 100644 --- a/src/backends/drm/drm_gpu.cpp +++ b/src/backends/drm/drm_gpu.cpp @@ -218,6 +218,9 @@ void DrmGpu::initDrmResources() bool DrmGpu::updateOutputs() { + if (!m_isActive) { + return false; + } waitIdle(); DrmUniquePtr resources(drmModeGetResources(m_fd)); if (!resources) {