diff options
author | Ken Moore <ken@ixsystems.com> | 2016-09-30 13:15:25 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2016-09-30 13:15:25 -0400 |
commit | 70611ebc270d9ab05c99b507104bec503090792f (patch) | |
tree | ba48293abdd7b9244287d5264490513e474ccd0f /src-qt5 | |
parent | Add a session option to disable compositing if no GPU acceleration is detected (diff) | |
download | lumina-70611ebc270d9ab05c99b507104bec503090792f.tar.gz lumina-70611ebc270d9ab05c99b507104bec503090792f.tar.bz2 lumina-70611ebc270d9ab05c99b507104bec503090792f.zip |
Adjust the default settings for the new GPU accel detection routine to prefer no compositing if GPU accel is not available.
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/core/lumina-session/session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp index 5b0d7980..937f05d0 100644 --- a/src-qt5/core/lumina-session/session.cpp +++ b/src-qt5/core/lumina-session/session.cpp @@ -116,11 +116,11 @@ void LSession::start(){ if(info[i].section("=",0,0).simplified()=="backend"){ info[i] = QString("backend = \"")+ (hasAccel ? "glx" : "xrender")+"\""; break; } //replace this line } LUtils::writeFile(set, info, true); - if( !hasAccel && settings.value("compositingWithGpuAccelOnly",false).toBool() ){ startcompton = false; } + if( !hasAccel && settings.value("compositingWithGpuAccelOnly",true).toBool() ){ startcompton = false; } } if(startcompton){ startProcess("compositing","compton --config \""+set+"\"", QStringList() << set); } } - }else if(LUtils::isValidBinary("xcompmgr") && !settings.value("compositingWithGpuAccelOnly",false).toBool() ){ startProcess("compositing","xcompmgr"); } + }else if(LUtils::isValidBinary("xcompmgr") && !settings.value("compositingWithGpuAccelOnly",true).toBool() ){ startProcess("compositing","xcompmgr"); } } //Desktop Next startProcess("runtime","lumina-desktop"); |