Re-enable hardware cursor on intel devices
My recent testing has shown that screen freezes when moving the cursor cannot be observed anymore. Maybe the issue has been fixed upstream by some unrelated change. Either way, let's re-enable the hardware cursor to gather some feedback.
This commit is contained in:
parent
ecb6460277
commit
54473f03ba
1 changed files with 1 additions and 5 deletions
|
@ -378,11 +378,7 @@ void WaylandCompositor::addOutput(Output *output)
|
|||
cursorLayer->setParent(workspaceLayer);
|
||||
cursorLayer->setSuperlayer(workspaceLayer);
|
||||
|
||||
// Software cursor is forced for intel devices because there are screen stuttering issues with hardware cursor,
|
||||
// possibly a kernel driver bug. Remove the workaround when https://gitlab.freedesktop.org/drm/intel/-/issues/9571 is fixed.
|
||||
static bool forceSoftwareCursorIsSet;
|
||||
static const bool forceSoftwareCursor = qEnvironmentVariableIntValue("KWIN_FORCE_SW_CURSOR", &forceSoftwareCursorIsSet) == 1
|
||||
|| (!forceSoftwareCursorIsSet && scene()->openglContext() && scene()->openglContext()->glPlatform()->isIntel());
|
||||
static const bool forceSoftwareCursor = qEnvironmentVariableIntValue("KWIN_FORCE_SW_CURSOR") == 1;
|
||||
|
||||
auto updateCursorLayer = [this, output, cursorLayer]() {
|
||||
const Cursor *cursor = Cursors::self()->currentCursor();
|
||||
|
|
Loading…
Reference in a new issue