From 5d9ae3f3b7ad904218add1c2559eec9a7a073e3e Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Wed, 5 Mar 2008 13:13:13 +0000 Subject: fixed urgent hint handling --- dwm.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dwm.c b/dwm.c index 9bad83c..a1a34e2 100644 --- 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); } } -- cgit v1.2.3-70-g09d2