platforms/drm: only show cursor on dpms on if not hidden

While always calling showCursor isn't a problem for when there's no
pointing device as the cursor image is empty in that case, it can
cause a temporarily stuck cursor image when it's supposed to be
hidden because of touch input
This commit is contained in:
Xaver Hugl 2021-07-07 21:02:43 +02:00
parent 925ff96401
commit a1847f77f1

View file

@ -429,7 +429,9 @@ void DrmOutput::dpmsFinishOn()
if (Compositor *compositor = Compositor::self()) {
compositor->addRepaintFull();
}
showCursor();
if (!m_backend->isCursorHidden()) {
showCursor();
}
}
void DrmOutput::dpmsFinishOff()