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:
Xaver Hugl 2022-05-11 09:10:36 +02:00
parent a902e78ff4
commit 78794b4239

View file

@ -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);
}
}