about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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
 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);
 	}
 }
5' href='#n95'>95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125