backends/drm: re-add KWIN_FORCE_SW_CURSOR
It was accidentally dropped
This commit is contained in:
parent
791b0bb296
commit
b2d401cddb
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue