From: garbeam@gmail.com Date: Fri, 17 Jun 2011 19:22:54 +0000 (+0100) Subject: applied Rudys barwidth patch, thanks Rudy X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=6cf29bff33003a8ab00530115af14f8c270fa0da;p=dwm.git applied Rudys barwidth patch, thanks Rudy --- diff --git a/dwm.c b/dwm.c index 7846be0..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));