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
This commit is contained in:
Roman Gilg 2018-04-18 20:08:33 +02:00
parent 48d30fa4fe
commit 7e831df46e

View file

@ -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;
}