equal
deleted
inserted
replaced
528 void |
528 void |
529 configurenotify(XEvent *e) { |
529 configurenotify(XEvent *e) { |
530 Monitor *m; |
530 Monitor *m; |
531 XConfigureEvent *ev = &e->xconfigure; |
531 XConfigureEvent *ev = &e->xconfigure; |
532 |
532 |
533 if(ev->window == root && (ev->width != sw || ev->height != sh)) { |
533 if(ev->window == root) { |
534 sw = ev->width; |
534 sw = ev->width; |
535 sh = ev->height; |
535 sh = ev->height; |
536 updategeom(); |
536 updategeom(); |
537 if(dc.drawable != 0) |
537 if(dc.drawable != 0) |
538 XFreePixmap(dpy, dc.drawable); |
538 XFreePixmap(dpy, dc.drawable); |