X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=eba48ed2b12d96dbf5c131b518731dec775e23ad;hp=f6cec0b22ec61b7be08a5a12b541bcf93f5c94e7;hb=6cf29bff33003a8ab00530115af14f8c270fa0da;hpb=d384cee751a2d23220df45c3c34dab5567c0594f diff --git a/dwm.c b/dwm.c index f6cec0b..eba48ed 100644 --- a/dwm.c +++ b/dwm.c @@ -585,11 +585,13 @@ void configurenotify(XEvent *e) { Monitor *m; XConfigureEvent *ev = &e->xconfigure; + Bool dirty; if(ev->window == root) { + dirty = (sw != ev->width); sw = ev->width; sh = ev->height; - if(updategeom()) { + if(updategeom() || dirty) { if(dc.drawable != 0) XFreePixmap(dpy, dc.drawable); dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); @@ -2034,7 +2036,6 @@ zoom(const Arg *arg) { Client *c = selmon->sel; if(!selmon->lt[selmon->sellt]->arrange - || selmon->lt[selmon->sellt]->arrange == monocle || (selmon->sel && selmon->sel->isfloating)) return; if(c == nexttiled(selmon->clients))