]> Dogcows Code - chaz/tint2/blobdiff - src/taskbar/task.c
*fix* do not add active tasks to the urgent list
[chaz/tint2] / 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.019877 seconds and 4 git commands to generate.