JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed urgent hint handling
authorAnselm R Garbe <garbeam@gmail.com>
Wed, 5 Mar 2008 13:13:13 +0000 (13:13 +0000)
committerAnselm R Garbe <garbeam@gmail.com>
Wed, 5 Mar 2008 13:13:13 +0000 (13:13 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index 9bad83c..a1a34e2 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1870,10 +1870,11 @@ void
 updatewmhints(Client *c) {
        XWMHints *wmh;
 
-       if(c == sel)
-               return;
        if((wmh = XGetWMHints(dpy, c->win))) {
-               c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
+               if(c == sel)
+                       sel->isurgent = False;
+               else
+                       c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
                XFree(wmh);
        }
 }