aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-09-16 11:09:26 -0400
committerKen Moore <moorekou@gmail.com>2015-09-16 11:09:26 -0400
commit470d9b82a7269cfec9e6b9d79074deff7bb62dc9 (patch)
tree643dbc7c6f17e8168cbc271af43afd605f3a3434 /lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
parentEnsure that the screen brightness slider in the system dashboard only goes do... (diff)
downloadlumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.tar.gz
lumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.tar.bz2
lumina-470d9b82a7269cfec9e6b9d79074deff7bb62dc9.zip
Fix up all the window activation detection/management within the lumina session. Now when a submenu on the panel is closed somehow or a window was modified with the task manager, it will properly find/activate the right window again.
Diffstat (limited to 'lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp')
-rw-r--r--lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
index 79a164b8..be3e665a 100644
--- a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
+++ b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp
@@ -35,8 +35,8 @@ void LTaskManagerPlugin::UpdateButtons(){
//Get the current window list
QList<WId> winlist = LSession::handle()->XCB->WindowList();
//Do not change the status of the previously active window if it just changed to a non-visible window
- WId activeWin = LSession::handle()->XCB->ActiveWindow();
- bool skipActive = !winlist.contains(activeWin);
+ //WId activeWin = LSession::handle()->XCB->ActiveWindow();
+ //bool skipActive = !winlist.contains(activeWin);
//qDebug() << "Update Buttons:" << winlist;
if(updating > ctime){ return; } //another thread kicked off already - stop this one
//Now go through all the current buttons first
@@ -74,9 +74,9 @@ void LTaskManagerPlugin::UpdateButtons(){
if(!updated){
//qDebug() << "Update Button:" << i;
if(updating > ctime){ return; } //another thread kicked off already - stop this one
- if(!skipActive || !BUTTONS[i]->isActive()){
+ //if(!skipActive || !BUTTONS[i]->isActive()){
QTimer::singleShot(1,BUTTONS[i], SLOT(UpdateButton()) ); //keep moving on
- }
+ //}
}
}
//Now go through the remaining windows
@@ -108,6 +108,7 @@ void LTaskManagerPlugin::UpdateButtons(){
but->setIconSize(QSize(this->width(), this->width()));
}
this->layout()->addWidget(but);
+ connect(but, SIGNAL(MenuClosed()), this, SIGNAL(MenuClosed()));
BUTTONS << but;
}
}
bgstack15