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:
parent
925ff96401
commit
a1847f77f1
1 changed files with 3 additions and 1 deletions
|
@ -429,7 +429,9 @@ void DrmOutput::dpmsFinishOn()
|
|||
if (Compositor *compositor = Compositor::self()) {
|
||||
compositor->addRepaintFull();
|
||||
}
|
||||
showCursor();
|
||||
if (!m_backend->isCursorHidden()) {
|
||||
showCursor();
|
||||
}
|
||||
}
|
||||
|
||||
void DrmOutput::dpmsFinishOff()
|
||||
|
|
Loading…
Reference in a new issue