aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-11-12 14:25:06 -0500
committerKen Moore <moorekou@gmail.com>2015-11-12 14:25:06 -0500
commitac4dd2a253d5e7aa5972d80d49cf643ac0111e6a (patch)
tree76514186dd518c14203f812917a02ec0dd50a8fb /lumina-desktop/panel-plugins
parentRemove a geometry-match condition when re-loading the desktop canvas's. This ... (diff)
downloadlumina-ac4dd2a253d5e7aa5972d80d49cf643ac0111e6a.tar.gz
lumina-ac4dd2a253d5e7aa5972d80d49cf643ac0111e6a.tar.bz2
lumina-ac4dd2a253d5e7aa5972d80d49cf643ac0111e6a.zip
Add a couple more XCB EWMH functions. One change required a re-definition of an enumeration (WINDOWSTATE -> WINDOWVISIBILITY), so I fixed the usage of that enum in the lumina-desktop project as well.
Diffstat (limited to 'lumina-desktop/panel-plugins')
-rw-r--r--lumina-desktop/panel-plugins/LTBWidget.h4
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp4
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskButton.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/lumina-desktop/panel-plugins/LTBWidget.h b/lumina-desktop/panel-plugins/LTBWidget.h
index 53ea1be0..560e5811 100644
--- a/lumina-desktop/panel-plugins/LTBWidget.h
+++ b/lumina-desktop/panel-plugins/LTBWidget.h
@@ -18,7 +18,7 @@ class LTBWidget : public QToolButton{
Q_OBJECT
private:
- LXCB::WINDOWSTATE cstate;
+ LXCB::WINDOWVISIBILITY cstate;
//QString rawstyle;
void updateBackground(){
//QString background = "background: transparent; "; //default value
@@ -52,7 +52,7 @@ public:
~LTBWidget(){
}
- void setState(LXCB::WINDOWSTATE newstate){
+ void setState(LXCB::WINDOWVISIBILITY newstate){
cstate = newstate;
updateBackground();
}
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
index c46c29b4..7dba1352 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
@@ -87,7 +87,7 @@ void LTaskButton::UpdateButton(){
LWINLIST = WINLIST;
winMenu->clear();
- LXCB::WINDOWSTATE showstate = LXCB::IGNORE;
+ LXCB::WINDOWVISIBILITY showstate = LXCB::IGNORE;
for(int i=0; i<WINLIST.length(); i++){
if(WINLIST[i].windowID() == 0){
WINLIST.removeAt(i);
@@ -108,7 +108,7 @@ void LTaskButton::UpdateButton(){
bool junk;
QAction *tmp = winMenu->addAction( WINLIST[i].icon(junk), WINLIST[i].text() );
tmp->setData(i); //save which number in the WINLIST this entry is for
- LXCB::WINDOWSTATE stat = WINLIST[i].status(true); //update the saved state for the window
+ LXCB::WINDOWVISIBILITY stat = WINLIST[i].status(true); //update the saved state for the window
if(stat<LXCB::ACTIVE && WINLIST[i].windowID() == LSession::handle()->activeWindow()){ stat = LXCB::ACTIVE; }
if(stat > showstate){ showstate = stat; } //higher priority
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.h b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.h
index c26492e4..43dbaa90 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.h
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.h
@@ -49,7 +49,7 @@ private:
bool noicon, showText;
LWinInfo currentWindow(); //For getting the currently-active window
- LXCB::WINDOWSTATE cstate; //current state of the button
+ LXCB::WINDOWVISIBILITY cstate; //current state of the button
public slots:
void UpdateButton(); //re-sync the current window infomation
bgstack15