--- rxvt-unicode/src/rxvttoolkit.C 2007/12/14 05:25:26 1.82 +++ rxvt-unicode/src/rxvttoolkit.C 2007/12/14 05:52:33 1.83 @@ -575,12 +575,13 @@ void rxvt_display::flush () { - XFlush (dpy); + flush_ev.start (); } void rxvt_display::flush_cb (ev::prepare &w, int revents) { - flush (); + w.stop (); + XFlush (dpy); } void rxvt_display::reg (xevent_watcher *w)