backends/drm: blacklist hardware cursors with the NVidia driver

It doesn't work and seems to cause hangs. If desired, this can be overwritten
by explicitly setting KWIN_FORCE_SW_CURSOR to 0.

BUG: 453632
This commit is contained in:
Xaver Hugl 2022-05-11 18:14:27 +02:00
parent 78794b4239
commit ed06d752f0

View file

@ -108,7 +108,8 @@ void DrmOutput::updateCursor()
{
static bool valid;
static const bool forceSoftwareCursor = qEnvironmentVariableIntValue("KWIN_FORCE_SW_CURSOR", &valid) == 1 && valid;
if (forceSoftwareCursor) {
// hardware cursors are broken with the NVidia proprietary driver
if (forceSoftwareCursor || (!valid && m_gpu->isNVidia())) {
m_setCursorSuccessful = false;
return;
}