diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-06-15 19:14:25 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-06-15 19:14:25 -0700 |
commit | e2b399b75b3f5c5cdb34001f46afb503820200a0 (patch) | |
tree | 5b9e4d3dcb542910b7600c3f0d05d18f1167d2d0 /src | |
parent | d9463fc66e935f5cdd4b5f8a7a73081ac24977ed (diff) | |
download | mirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.tar.gz mirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.tar.bz2 mirror-meh-e2b399b75b3f5c5cdb34001f46afb503820200a0.zip |
minor change
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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){ |