From 01f0a6bde61aac75d30e053445fdbd78966f1000 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 9 Apr 2008 16:26:02 +0200 Subject: [PATCH] [events] Wait for events rather than poll Signed-off-by: Julien Danjou --- awesome-menu.c | 2 +- mouse.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome-menu.c b/awesome-menu.c index 8f04adf4c..939a34a21 100644 --- a/awesome-menu.c +++ b/awesome-menu.c @@ -1359,7 +1359,7 @@ main(int argc, char **argv) while(status == RUN) { - while((ev = xcb_poll_for_event(globalconf.connection))) + while((ev = xcb_wait_for_event(globalconf.connection))) { /* Skip errors */ if(ev->response_type == 0) diff --git a/mouse.c b/mouse.c index 3164cee3b..a9a2aeb68 100644 --- a/mouse.c +++ b/mouse.c @@ -245,7 +245,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused))) { /* XMaskEvent allows to retrieve only specified events from * the queue and requeue the other events... */ - while((ev = xcb_poll_for_event(globalconf.connection))) + while((ev = xcb_wait_for_event(globalconf.connection))) { switch((ev->response_type & 0x7f)) { @@ -392,7 +392,7 @@ uicb_client_resizemouse(int screen, char *arg __attribute__ ((unused))) { /* XMaskEvent allows to retrieve only specified events from * the queue and requeue the other events... */ - while((ev = xcb_poll_for_event(globalconf.connection))) + while((ev = xcb_wait_for_event(globalconf.connection))) { switch((ev->response_type & 0x7f)) {