*fix* do not add active tasks to the urgent list git-svn-id: http://tint2.googlecode.com/svn/trunk@281 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
1 files changed,
7 insertions(+),
0 deletions(-)
jump to
M
src/taskbar/task.c
→
src/taskbar/task.c
@@ -477,6 +477,13 @@
void add_urgent(Task *tsk) { + if (!tsk) + return; + + // some programs set urgency hint although they are active + if ( task_active && task_active->win == tsk->win ) + return; + // first check if task is already in the list and reset the counter GSList* urgent_task = urgent_list; while (urgent_task) {