# HG changeset patch # User Thinker K.F. Li # Date 1222270840 -28800 # Node ID 3efe770071276020f0844085d8a9954cab088705 # Parent e89512d6fa0a931ae71952860be1f402f7050d30 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. diff -r e89512d6fa0a -r 3efe77007127 src/X_supp.c --- 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;