*** empty log message ***
authorroot <root>
Sat, 26 Jan 2008 12:12:38 +0000 (12:12 +0000)
committerroot <root>
Sat, 26 Jan 2008 12:12:38 +0000 (12:12 +0000)
src/rxvttoolkit.C

index b1b0abff69a4aad083e4962bf148a2f74c620882..7d03cd209e90d0deec7b774a57e250c480edc2a2 100644 (file)
@@ -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 ();
 }