--- rxvt-unicode/src/rxvttoolkit.C 2008/01/26 11:37:51 1.94 +++ rxvt-unicode/src/rxvttoolkit.C 2008/01/26 13:13:20 1.98 @@ -575,8 +575,10 @@ void rxvt_display::flush_cb (ev::prepare &w, int revents) { + while (XEventsQueued (dpy, QueuedAfterFlush)) + x_cb (x_ev, EV_READ); + w.stop (); - XFlush (dpy); } void rxvt_display::reg (xevent_watcher *w)