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:
parent
48d30fa4fe
commit
7e831df46e
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue