summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-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}