changeset 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 e89512d6fa0a
children 21db69d46835
files src/X_supp.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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;