about summary refs log tree commit diff stats
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
parent2e38296edd5fbafbb93a42333af22ba9edd667bf (diff)
downloaddwm-5d9ae3f3b7ad904218add1c2559eec9a7a073e3e.tar.gz
fixed urgent hint handling
-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);
 	}
 }
id='n101' href='#n101'>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 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153