drm: hide the cursor as we are setting dpms off

It seems to crash amdgpu and it's consistent with how we're cleaning all
our planes.

BUG: 435941
This commit is contained in:
Aleix Pol 2021-04-22 02:30:34 +02:00 committed by Aleix Pol Gonzalez
parent 633136d228
commit b3ddb11b7c

View file

@ -580,6 +580,7 @@ bool DrmOutput::dpmsAtomicOff()
m_atomicOffPending = false;
// TODO: With multiple planes: deactivate all of them here
hideCursor();
m_primaryPlane->setNext(nullptr);
m_nextPlanesFlipList << m_primaryPlane;