=================================================================== RCS file: /cvs/ace/ace/lib/xwin.c,v retrieving revision 1.6 retrieving revision 1.7 diff -p -u -r1.6 -r1.7 --- ace/lib/xwin.c 2007/10/22 22:59:41 1.6 +++ /cvs/ace/ace/lib/xwin.c 2010/06/02 06:05:31 1.7 @@ -377,6 +377,18 @@ xwin_nextevent (XWin_Event *ev) char c; static int click_button; static int last_resize_w=-1, last_resize_h=-1; + static int need_expose = 0; + + if (need_expose) + { + ev->type = ev_expose; + ev->x = 0; + ev->y = 0; + ev->w = last_resize_w; + ev->h = last_resize_h; + need_expose = 0; + return ev_expose; + } while (1) { @@ -397,6 +409,7 @@ xwin_nextevent (XWin_Event *ev) break; last_resize_w = ev->w; last_resize_h = ev->h; + need_expose = 1; return ev_resize; case Expose: