[events] Wait for events rather than poll

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-09 16:26:02 +02:00
parent 046297aaeb
commit 01f0a6bde6
2 changed files with 3 additions and 3 deletions

View File

@ -1359,7 +1359,7 @@ main(int argc, char **argv)
while(status == RUN) while(status == RUN)
{ {
while((ev = xcb_poll_for_event(globalconf.connection))) while((ev = xcb_wait_for_event(globalconf.connection)))
{ {
/* Skip errors */ /* Skip errors */
if(ev->response_type == 0) if(ev->response_type == 0)

View File

@ -245,7 +245,7 @@ uicb_client_movemouse(int screen, char *arg __attribute__ ((unused)))
{ {
/* XMaskEvent allows to retrieve only specified events from /* XMaskEvent allows to retrieve only specified events from
* the queue and requeue the other events... */ * 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)) 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 /* XMaskEvent allows to retrieve only specified events from
* the queue and requeue the other events... */ * 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)) switch((ev->response_type & 0x7f))
{ {