rem: if (event->xexpose.count!=0) { return; }
add: while (XCheckTypedWindowEvent(dpy, event->xexpose.window, Expose, &ev));
context: handleExpose(XEvent *event){    WObjDescriptor *desc;#ifdef DEBUG        puts("got expose");#endif    if (event->xexpose.count!=0) {      return;    }        if (XFindContext(dpy, event->xexpose.window, wWinContext, 		     (XPointer *)&desc)==XCNOENT) {	return;    }        if (desc->handle_expose) {	(*desc->handle_expose)(desc, event);    }}