--- rxvt-unicode/src/rxvttoolkit.C 2004/12/15 00:53:23 1.7 +++ rxvt-unicode/src/rxvttoolkit.C 2004/12/29 19:59:46 1.10 @@ -272,18 +272,15 @@ } while (XEventsQueued (display, QueuedAlready)); - flush (); + XFlush (display); } void rxvt_display::flush () { - for (;;) - { - if (!XPending (display)) - break; + if (XEventsQueued (display, QueuedAlready)) + x_cb (x_ev, EVENT_READ); - x_cb (x_ev, 0); - } + XFlush (display); } void rxvt_display::reg (xevent_watcher *w) @@ -340,7 +337,9 @@ void rxvt_display::put_xim (rxvt_xim *xim) { +#if XLIB_IS_RACEFREE xims.put (xim); +#endif } #endif