*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
This commit is contained in:
Andreas.Fink85 2009-11-26 09:25:38 +00:00
parent a32bb100ed
commit cb9f2f7517

View file

@ -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) {