aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LPanel.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-10-08 09:19:03 -0400
committerKen Moore <ken@ixsystems.com>2018-10-08 09:19:03 -0400
commit151b24609cb3ff3e3fcdce8aaf3de35c91b6a6c6 (patch)
tree705cb430bd2d4ed470b9814e6fccc0017aace1bc /src-qt5/core/lumina-desktop/LPanel.cpp
parentFix a quick typo in the session environment setup. (diff)
downloadlumina-151b24609cb3ff3e3fcdce8aaf3de35c91b6a6c6.tar.gz
lumina-151b24609cb3ff3e3fcdce8aaf3de35c91b6a6c6.tar.bz2
lumina-151b24609cb3ff3e3fcdce8aaf3de35c91b6a6c6.zip
Make the panel compositing toggle based on whether compton is running.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LPanel.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LPanel.cpp b/src-qt5/core/lumina-desktop/LPanel.cpp
index 869fc914..b0b2400f 100644
--- a/src-qt5/core/lumina-desktop/LPanel.cpp
+++ b/src-qt5/core/lumina-desktop/LPanel.cpp
@@ -12,11 +12,12 @@
#define DEBUG 0
+static bool hascompositer = !LUtils::getCmdOutput("ps -x").filter("compton").filter("--backend").isEmpty(); //LUtils::isValidBinary("xcompmgr"); //NOT WORKING YET - xcompmgr issue with special window flags?
+
LPanel::LPanel(QSettings *file, QString scr, int num, QWidget *parent, bool reservespace) : QWidget(){
//Take care of inputs
reserveloc = reservespace;
this->setMouseTracking(true);
- hascompositer = true; //LUtils::isValidBinary("xcompmgr"); //NOT WORKING YET - xcompmgr issue with special window flags?
if(DEBUG){ qDebug() << " - Creating Panel:" << scr << num; }
bgWindow = parent; //save for later
//Setup the widget overlay for the entire panel to provide transparency effects
bgstack15