JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
always updategeom when root is configured
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 74b7795..7a4600f 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -530,7 +530,7 @@ configurenotify(XEvent *e) {
        Monitor *m;
        XConfigureEvent *ev = &e->xconfigure;
 
-       if(ev->window == root && (ev->width != sw || ev->height != sh)) {
+       if(ev->window == root) {
                sw = ev->width;
                sh = ev->height;
                updategeom();
@@ -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);
                }
        }
 }