*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:
parent
a32bb100ed
commit
cb9f2f7517
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue