dwm.c
changeset 1484 487ed0f2e51d
parent 1483 63e19dad219c
child 1485 3cde8e2dc511
equal deleted inserted replaced
1483:63e19dad219c 1484:487ed0f2e51d
   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);