diff options
author | garbeam@gmail.com | 2011-06-17 20:22:54 +0100 |
---|---|---|
committer | garbeam@gmail.com | 2011-06-17 20:22:54 +0100 |
commit | 6cf29bff33003a8ab00530115af14f8c270fa0da (patch) | |
tree | e6e7655f4a58b1ad11c4a7e163f43458607f3c1a /dwm.c | |
parent | 60c06a7cb42219953edf1fa752750eb98384a14b (diff) |
applied Rudys barwidth patch, thanks Rudy
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)); |