applied Rudys barwidth patch, thanks Rudy
This commit is contained in:
parent
60c06a7cb4
commit
6cf29bff33
1 changed files with 3 additions and 1 deletions
4
dwm.c
4
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));
|
||||
|
|
Loading…
Reference in a new issue