From 71d6d4f99d476ea747069aa236eadeab30249c7f Mon Sep 17 00:00:00 2001 From: Andreas Fink Date: Thu, 26 Nov 2009 09:25:38 +0000 Subject: [PATCH] *fix* do not add active tasks to the urgent list --- src/taskbar/task.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/taskbar/task.c b/src/taskbar/task.c index a59f28f..3bc9759 100644 --- a/src/taskbar/task.c +++ b/src/taskbar/task.c @@ -477,6 +477,13 @@ void blink_urgent() 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) { -- 2.44.0