From 80cb4cbea61a0184cd093c0e723dfcfae19ea68e Mon Sep 17 00:00:00 2001 From: root Date: Sat, 26 Jan 2008 12:12:38 +0000 Subject: [PATCH] *** empty log message *** --- src/rxvttoolkit.C | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C index b1b0abff..7d03cd20 100644 --- a/src/rxvttoolkit.C +++ b/src/rxvttoolkit.C @@ -575,11 +575,13 @@ void rxvt_display::x_cb (ev::io &w, int revents) void rxvt_display::flush_cb (ev::prepare &w, int revents) { - while (XEventsQueued (dpy, QueuedAfterFlush)) - { - x_cb(x_ev,0);//D - } - + XFlush (dpy); + if (XEventsQueued (dpy, QueuedAfterReading)) + x_cb(x_ev,0);//D + XFlush (dpy); + if (XEventsQueued (dpy, QueuedAfterReading)) + x_cb(x_ev,0);//D + XFlush (dpy); w.stop (); } -- 2.34.1