--- rxvt-unicode/src/rxvttoolkit.C 2004/12/15 05:30:40 1.8 +++ rxvt-unicode/src/rxvttoolkit.C 2004/12/29 19:59:46 1.10 @@ -272,11 +272,14 @@ } while (XEventsQueued (display, QueuedAlready)); - flush (); + XFlush (display); } void rxvt_display::flush () { + if (XEventsQueued (display, QueuedAlready)) + x_cb (x_ev, EVENT_READ); + XFlush (display); } @@ -334,7 +337,9 @@ void rxvt_display::put_xim (rxvt_xim *xim) { +#if XLIB_IS_RACEFREE xims.put (xim); +#endif } #endif