repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: db5878510f7d2f53101ecde3bd4c19aa3b992ea7:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit db5878510f7d2f53101ecde3bd4c19aa3b992ea7
Author: Marc Lehmann 
Date:   Sat Jan 26 12:15:11 2008 +0000

    *** empty log message ***

diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
index 7d03cd209e90d0deec7b774a57e250c480edc2a2..
index ..b1b0abff69a4aad083e4962bf148a2f74c620882 100644
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -575,13 +575,11 @@ void rxvt_display::x_cb (ev::io &w, int revents)

 void rxvt_display::flush_cb (ev::prepare &w, int revents)
 {
-  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);
+  while (XEventsQueued (dpy, QueuedAfterFlush))
+    {
+      x_cb(x_ev,0);//D
+    }
+
   w.stop ();
 }

-----END OF PAGE-----