From e2b399b75b3f5c5cdb34001f46afb503820200a0 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sun, 15 Jun 2008 19:14:25 -0700 Subject: minor change --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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){ -- cgit v1.2.3