+static void event_config(XConfigureEvent *e) {
+ if (e->width == wwidth && e->height == wheight)
+ return;
+
+ wwidth= e->width; wheight= e->height;
+ wmaxdim= wwidth > wheight ? wwidth : wheight;
+ wmindim= wwidth < wheight ? wwidth : wheight;
+
+ XA( XSetWindowBackground(display,window,BlackPixel(display,x11screen)) );
+ for (currentbuffer=0; currentbuffer<2; currentbuffer++)
+ XA( XFreePixmap(display, doublebuffers[currentbuffer]) );
+
+ mkpixmaps();
+ show();
+}