backends/drm: hide cursor again

Before 6a99bfd2, the DrmBackend took care of checking this. Now it
needs to be explicitly checked in DrmOutput
This commit is contained in:
Xaver Hugl 2022-01-05 16:36:52 +01:00
parent dfe69a6784
commit d18e631d47

View file

@ -101,7 +101,7 @@ void DrmOutput::updateCursor()
return; return;
} }
const QImage cursorImage = cursor->image(); const QImage cursorImage = cursor->image();
if (cursorImage.isNull()) { if (cursorImage.isNull() || Cursors::self()->isCursorHidden()) {
m_pipeline->setCursor(nullptr); m_pipeline->setCursor(nullptr);
return; return;
} }