Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
141:e89512d6fa0a | 142:3efe77007127 |
---|---|
305 struct timeval tv; | 305 struct timeval tv; |
306 fd_set rfds; | 306 fd_set rfds; |
307 int nfds; | 307 int nfds; |
308 int r, r1; | 308 int r, r1; |
309 | 309 |
310 rdman_redraw_all(rdman); | 310 handle_x_event(rt); |
311 XFlush(display); | |
312 | 311 |
313 fd = XConnectionNumber(display); | 312 fd = XConnectionNumber(display); |
314 nfds = fd + 1; | 313 nfds = fd + 1; |
315 while(1) { | 314 while(1) { |
316 FD_ZERO(&rfds); | 315 FD_ZERO(&rfds); |