also update title if the client is on an unfocused monitor
authorAnselm R Garbe <garbeam@gmail.com>
Tue, 18 Aug 2009 15:42:55 +0100
changeset 1482 d4137ac1d940
parent 1481 b8cfc90d1703
child 1483 63e19dad219c
also update title if the client is on an unfocused monitor
dwm.c
--- a/dwm.c	Sun Aug 16 21:39:24 2009 +0100
+++ b/dwm.c	Tue Aug 18 15:42:55 2009 +0100
@@ -1235,7 +1235,7 @@
 		}
 		if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
 			updatetitle(c);
-			if(c == selmon->sel)
+			if(c == c->mon->sel)
 				drawbars();
 		}
 	}