[hackers] [wmii] Experimentially made aforementioned notices more accurate

From: Kris Maglione <jg_AT_suckless.org>
Date: Tue Feb 13 05:37:38 2007

changeset: 1862:580a986d9359
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Feb 12 23:35:43 2007 -0500
summary: Experimentially made aforementioned notices more accurate

diff -r 4a815c30c168 -r 580a986d9359 client.c
--- a/client.c Mon Feb 12 23:32:00 2007 -0500
+++ b/client.c Mon Feb 12 23:35:43 2007 -0500
@@ -306,7 +306,8 @@ set_urgent(Client *c, Bool urgent, Bool
 set_urgent(Client *c, Bool urgent, Bool write) {
         XWMHints *wmh;
         char *cwrite, *cnot;
- Frame *f;
+ Frame *f, *ff;
+ Area *a;
 
         cwrite = "Client";
         if(write)
@@ -324,8 +325,13 @@ set_urgent(Client *c, Bool urgent, Bool
                                 draw_frame(c->sel);
                         }
                         if(!urgent || c->sel->view != screen->sel)
- for(f=c->frame; f; f=f->cnext)
- write_event("%sUrgentTag %s %s\n", cnot, cwrite, f->view->name);
+ for(f=c->frame; f; f=f->cnext) {
+ for(a=f->view->area; a; a=a->next)
+ for(ff=a->frame; ff; ff=ff->anext)
+ if(ff->urgent) break;
+ if(!ff)
+ write_event("%sUrgentTag %s %s\n", cnot, cwrite, f->view->name);
+ }
                 }
         }
 
Received on Tue Feb 13 2007 - 05:37:38 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:15 UTC