From: Andreas Fink Date: Thu, 26 Nov 2009 09:25:38 +0000 (+0000) Subject: *fix* do not add active tasks to the urgent list X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=71d6d4f99d476ea747069aa236eadeab30249c7f;p=chaz%2Ftint2 *fix* do not add active tasks to the urgent list --- 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) {