summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-05 13:13:13 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-05 13:13:13 +0000
commit5d9ae3f3b7ad904218add1c2559eec9a7a073e3e (patch)
treef57418dc60c853cb76060327da7ee11d91f97db9 /dwm.c
parentrenamed maximise to monocle again. (diff)
downloaddwm-5d9ae3f3b7ad904218add1c2559eec9a7a073e3e.tar.gz
dwm-5d9ae3f3b7ad904218add1c2559eec9a7a073e3e.zip
fixed urgent hint handling
Diffstat (limited to '')
-rw-r--r--dwm.c7
1 files 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
1870updatewmhints(Client *c) { 1870updatewmhints(Client *c) {
1871 XWMHints *wmh; 1871 XWMHints *wmh;
1872 1872
1873 if(c == sel)
1874 return;
1875 if((wmh = XGetWMHints(dpy, c->win))) { 1873 if((wmh = XGetWMHints(dpy, c->win))) {
1876 c->isurgent = (wmh->flags & XUrgencyHint) ? True : False; 1874 if(c == sel)
1875 sel->isurgent = False;
1876 else
1877 c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
1877 XFree(wmh); 1878 XFree(wmh);
1878 } 1879 }
1879} 1880}