aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-04-22 20:14:00 -0400
committerKen Moore <ken@pcbsd.org>2015-04-22 20:14:00 -0400
commit81f30415189758e678287fd34ed3f17982f6d966 (patch)
treea73f04146ef9a44b7b12eb2c803af1b4c966754f /lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
parentMerge pull request #95 from Nanolx/master (diff)
downloadlumina-81f30415189758e678287fd34ed3f17982f6d966.tar.gz
lumina-81f30415189758e678287fd34ed3f17982f6d966.tar.bz2
lumina-81f30415189758e678287fd34ed3f17982f6d966.zip
Fix a bug where the clicking on the currently-active window on the taskmanager will not minimize the window.
Diffstat (limited to 'lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp')
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
index 20607c60..eda1f2cd 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskButton.cpp
@@ -193,9 +193,9 @@ void LTaskButton::minimizeWindow(){
void LTaskButton::triggerWindow(){
LWinInfo win = currentWindow();
//Check which state the window is currently in and flip it to the other
- LXCB::WINDOWSTATE state = cstate;
- if(DEBUG){ qDebug() << "Window State: " << state; }
- if(state == LXCB::ACTIVE){
+ //LXCB::WINDOWSTATE state = cstate;
+ //if(DEBUG){ qDebug() << "Window State: " << state; }
+ if(cstate == LXCB::ACTIVE){
if(DEBUG){ qDebug() << "Minimize Window:" << this->text(); }
LSession::handle()->XCB->MinimizeWindow(win.windowID());
QTimer::singleShot(100, this, SLOT(UpdateButton()) ); //make sure to update this button if losing active status
bgstack15