aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-session
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-10-03 12:09:26 +0000
committerWeblate <noreply@weblate.org>2016-10-03 12:09:26 +0000
commitf836ad04f629640db6c8076bf335d849eed64294 (patch)
treeeecfd74a4d7ba31489c8d76c70f900dacd1541d5 /src-qt5/core/lumina-session
parentTranslated using Weblate (l_FILEINFO@ja (generated)) (diff)
parentFix up some instability within lumina-fileinfo. (diff)
downloadlumina-f836ad04f629640db6c8076bf335d849eed64294.tar.gz
lumina-f836ad04f629640db6c8076bf335d849eed64294.tar.bz2
lumina-f836ad04f629640db6c8076bf335d849eed64294.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/lumina-session')
-rw-r--r--src-qt5/core/lumina-session/session.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-session/session.cpp b/src-qt5/core/lumina-session/session.cpp
index 0e88a227..937f05d0 100644
--- a/src-qt5/core/lumina-session/session.cpp
+++ b/src-qt5/core/lumina-session/session.cpp
@@ -107,6 +107,7 @@ void LSession::start(){
startProcess("compositing","compton");
}else{
//Auto-detect if GLX is available on the system and turn it on/off as needed
+ bool startcompton = true;
if(LUtils::isValidBinary("glxinfo")){
bool hasAccel =! LUtils::getCmdOutput("glxinfo -B").filter("direct rendering:").filter("Yes").isEmpty();
qDebug() << "Detected GPU Acceleration:" << hasAccel;
@@ -115,10 +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",true).toBool() ){ startcompton = false; }
}
- startProcess("compositing","compton --config \""+set+"\"", QStringList() << set);
+ if(startcompton){ startProcess("compositing","compton --config \""+set+"\"", QStringList() << set); }
}
- }else if(LUtils::isValidBinary("xcompmgr")){ startProcess("compositing","xcompmgr"); }
+ }else if(LUtils::isValidBinary("xcompmgr") && !settings.value("compositingWithGpuAccelOnly",true).toBool() ){ startProcess("compositing","xcompmgr"); }
}
//Desktop Next
startProcess("runtime","lumina-desktop");
bgstack15