JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
also update title if the client is on an unfocused monitor
[dwm.git] / 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();
                }
        }