diff options
author | Ken Moore <ken@pcbsd.org> | 2015-04-22 20:14:00 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2015-04-22 20:14:00 -0400 |
commit | 81f30415189758e678287fd34ed3f17982f6d966 (patch) | |
tree | a73f04146ef9a44b7b12eb2c803af1b4c966754f /lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp | |
parent | Merge pull request #95 from Nanolx/master (diff) | |
download | lumina-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/LTaskManagerPlugin.cpp')
-rw-r--r-- | lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp index 8f73ffa1..9da86da8 100644 --- a/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp +++ b/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp @@ -35,7 +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 - bool skipActive = false;//!winlist.contains( LSession::handle()->XCB->ActiveWindow() ); + 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 |