also update title if the client is on an unfocused monitor
authorAnselm R Garbe <garbeam@gmail.com>
Tue, 18 Aug 2009 14:42:55 +0000 (15:42 +0100)
committerAnselm R Garbe <garbeam@gmail.com>
Tue, 18 Aug 2009 14:42:55 +0000 (15:42 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 74b7795..f63a1c0 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1235,7 +1235,7 @@ propertynotify(XEvent *e) {
                }
                if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
                        updatetitle(c);
-                       if(c == selmon->sel)
+                       if(c == c->mon->sel)
                                drawbars();
                }
        }