]> Dogcows Code - chaz/tint2/commitdiff
*fix* do not add active tasks to the urgent list
authorAndreas Fink <andreas.fink85@googlemail.com>
Thu, 26 Nov 2009 09:25:38 +0000 (09:25 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Thu, 26 Nov 2009 09:25:38 +0000 (09:25 +0000)
src/taskbar/task.c

index a59f28f50b18cc42f660e5e2bfab2f719e29ad0a..3bc9759748a87e0207127a9108468e80ae9e82af 100644 (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) {
This page took 0.019599 seconds and 4 git commands to generate.