diff src/X_supp.c @ 142:3efe77007127

Do not redraw all at begining, waiting for explosure. X Server will send X client a explose event after mapping. So, it just waits for explose event to show graphics.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 24 Sep 2008 23:40:40 +0800
parents 6a8588df68af
children c7e5b8779bb5
line wrap: on
line diff
--- a/src/X_supp.c	Tue Sep 23 09:09:34 2008 +0800
+++ b/src/X_supp.c	Wed Sep 24 23:40:40 2008 +0800
@@ -307,8 +307,7 @@
     int nfds;
     int r, r1;
 
-    rdman_redraw_all(rdman);
-    XFlush(display);
+    handle_x_event(rt);
 
     fd = XConnectionNumber(display);
     nfds = fd + 1;