X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=7a4600f5a84b88421fc774216be7d22e09e32ec8;hp=74b77957aa92d06e39eef9fa1c742a9fa7d941a4;hb=9c066c24b3d0b7767651f0f403db2e4007a847c8;hpb=42750a621b3f0786e7fa3d7c9533c03c2a3d189d diff --git a/dwm.c b/dwm.c index 74b7795..7a4600f 100644 --- 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); } } }