backends/drm: disable cursor layer when setCursor fails
Otherwise the next commit will still try to enable the cursor layer, and possibly fail because of it
This commit is contained in:
parent
a902e78ff4
commit
78794b4239
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@ void DrmOutput::updateCursor()
|
|||
layer->setVisible(cursor->geometry().intersects(geometry()));
|
||||
if (layer->isVisible()) {
|
||||
m_setCursorSuccessful = m_pipeline->setCursor(logicalToNativeMatrix(QRect(QPoint(), cursorRect.size()), scale(), transform()).map(cursor->hotspot()));
|
||||
layer->setVisible(m_setCursorSuccessful);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue