aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.cpp3
-rw-r--r--src-qt5/core/lumina-desktop/LPanel.h2
2 files changed, 3 insertions, 2 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
diff --git a/src-qt5/core/lumina-desktop/LPanel.h b/src-qt5/core/lumina-desktop/LPanel.h
index d9b7627c..e02f657f 100644
--- a/src-qt5/core/lumina-desktop/LPanel.h
+++ b/src-qt5/core/lumina-desktop/LPanel.h
@@ -37,7 +37,7 @@ private:
QWidget *bgWindow, *panelArea;
//QRect hidegeom, showgeom; //for hidden panels
QPoint hidepoint, showpoint; //for hidden panels: locations when hidden/visible
- bool defaultpanel, horizontal, hidden, hascompositer, reserveloc;
+ bool defaultpanel, horizontal, hidden, reserveloc;
QString screenID;
int panelnum;
int viswidth, fullwidth;
bgstack15