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()
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue