JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
another small optimisation
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 74b7795..f7e9e84 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1235,8 +1235,8 @@ propertynotify(XEvent *e) {
                }
                if(ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) {
                        updatetitle(c);
-                       if(c == selmon->sel)
-                               drawbars();
+                       if(c == c->mon->sel)
+                               drawbar(c->mon);
                }
        }
 }