backends/drm: re-add KWIN_FORCE_SW_CURSOR

It was accidentally dropped
This commit is contained in:
Xaver Hugl 2022-01-16 16:55:56 +01:00
parent 791b0bb296
commit b2d401cddb

View file

@ -92,6 +92,12 @@ static bool isCursorSpriteCompatible(const QImage *buffer, const QImage *sprite)
void DrmOutput::updateCursor()
{
static bool valid;
static const bool forceSoftwareCursor = qEnvironmentVariableIntValue("KWIN_FORCE_SW_CURSOR", &valid) == 1 && valid;
if (forceSoftwareCursor) {
m_setCursorSuccessful = false;
return;
}
if (!m_pipeline->pending.crtc) {
return;
}