From 4edfe2151515e5caa01038693bf33a014b2bd836 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Tue, 9 Sep 2008 20:11:35 +0000 Subject: [PATCH] Fix incorrect event loop causing 100% load until an X event is received. SVN revision: 35901 --- src/bin/imlib2_view.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c index 72bf2ed..954a7b0 100644 --- a/src/bin/imlib2_view.c +++ b/src/bin/imlib2_view.c @@ -158,8 +158,6 @@ main(int argc, char **argv) double t1; XFlush(disp); - while (XPending(disp)) - { XNextEvent(disp, &ev); switch (ev.type) { @@ -350,8 +348,6 @@ main(int argc, char **argv) timeout = 0; } } - - } } return 0; }