From 9920cf0dc899ddde54198b8e65592ad118c1e91b Mon Sep 17 00:00:00 2001 From: Henry Hu Date: Fri, 13 May 2016 01:40:27 -0400 Subject: Skip windows with SKIP_TASKBAR state in task manager --- .../panel-plugins/taskmanager/LTaskManagerPlugin.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp index 3e31a534..79c5dd36 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/taskmanager/LTaskManagerPlugin.cpp @@ -34,6 +34,18 @@ void LTaskManagerPlugin::UpdateButtons(){ //Get the current window list QList winlist = LSession::handle()->XCB->WindowList(); + // Ignore the windows which don't want to be listed + for (int i = 0; i < winlist.length(); i++) { + QList states = LSession::handle()->XCB->WM_Get_Window_States(winlist[i]); + for (int j = 0; j < states.length(); j++) { + if (states[j] == LXCB::S_SKIP_TASKBAR) { + // Skip taskbar window + winlist.removeAt(i); + i--; + break; + } + } + } //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); -- cgit