aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-15 19:14:25 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-15 19:14:25 -0700
commite2b399b75b3f5c5cdb34001f46afb503820200a0 (patch)
tree5b9e4d3dcb542910b7600c3f0d05d18f1167d2d0 /src
parentd9463fc66e935f5cdd4b5f8a7a73081ac24977ed (diff)
downloadmirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.tar.gz
mirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.tar.bz2
mirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.zip
minor change
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ac1ce37..cbb0fdc 100644
--- a/src/main.c
+++ b/src/main.c
@@ -200,7 +200,10 @@ void run(struct imagenode *image){
for(;;){
XEvent event;
- while(XPending(display)){
+ for(;;){
+ if(redraw && !XPending(display)){
+ break;
+ }
XNextEvent(display, &event);
switch(event.type){
case MapNotify:
@@ -273,6 +276,7 @@ void run(struct imagenode *image){
free(tmp);
}
setaspect(bufwidth, bufheight);
+ continue;
}
if(!img){
if(width * bufheight > height * bufwidth){