From 7e831df46ea9856d56c09bf3d65944d6792e99c2 Mon Sep 17 00:00:00 2001 From: Roman Gilg Date: Wed, 18 Apr 2018 20:08:33 +0200 Subject: [PATCH] Add environment variable to force sw cursor Summary: For debugging purposes add an environment variable to force use of software cursor. Test Plan: Manual test with and without setting the variable. Reviewers: #kwin, garg, davidedmundson Reviewed By: davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D12322 --- platform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform.cpp b/platform.cpp index 65ce0259dd..88168ea744 100644 --- a/platform.cpp +++ b/platform.cpp @@ -41,6 +41,7 @@ Platform::Platform(QObject *parent) : QObject(parent) , m_eglDisplay(EGL_NO_DISPLAY) { + setSoftWareCursor(false); m_colorCorrect = new ColorCorrect::Manager(this); } @@ -129,6 +130,9 @@ void Platform::configurationChangeRequested(KWayland::Server::OutputConfiguratio void Platform::setSoftWareCursor(bool set) { + if (qEnvironmentVariableIsSet("KWIN_FORCE_SW_CURSOR")) { + set = true; + } if (m_softWareCursor == set) { return; }