diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -585,11 +585,13 @@ void | |||
| 585 | configurenotify(XEvent *e) { | 585 | configurenotify(XEvent *e) { |
| 586 | Monitor *m; | 586 | Monitor *m; |
| 587 | XConfigureEvent *ev = &e->xconfigure; | 587 | XConfigureEvent *ev = &e->xconfigure; |
| 588 | Bool dirty; | ||
| 588 | 589 | ||
| 589 | if(ev->window == root) { | 590 | if(ev->window == root) { |
| 591 | dirty = (sw != ev->width); | ||
| 590 | sw = ev->width; | 592 | sw = ev->width; |
| 591 | sh = ev->height; | 593 | sh = ev->height; |
| 592 | if(updategeom()) { | 594 | if(updategeom() || dirty) { |
| 593 | if(dc.drawable != 0) | 595 | if(dc.drawable != 0) |
| 594 | XFreePixmap(dpy, dc.drawable); | 596 | XFreePixmap(dpy, dc.drawable); |
| 595 | dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); | 597 | dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); |
