From 3e13545cc962d177b599141e19ae1746567125d8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 31 Aug 2008 13:18:02 +0200 Subject: [PATCH] Remove 2-level polling Signed-off-by: Julien Danjou --- awesome.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/awesome.c b/awesome.c index c1bbd8806..ea85dcdc2 100644 --- a/awesome.c +++ b/awesome.c @@ -163,15 +163,11 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents) while((ev = xcb_poll_for_event(globalconf.connection))) { - do - { - xcb_handle_event(globalconf.evenths, ev); - p_delete(&ev); - } - while((ev = xcb_poll_for_event(globalconf.connection))); - - awesome_refresh(globalconf.connection); + xcb_handle_event(globalconf.evenths, ev); + p_delete(&ev); } + + awesome_refresh(globalconf.connection); } static void