Remove 2-level polling
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0ada7c532d
commit
3e13545cc9
|
@ -162,17 +162,13 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
|
||||||
xcb_generic_event_t *ev;
|
xcb_generic_event_t *ev;
|
||||||
|
|
||||||
while((ev = xcb_poll_for_event(globalconf.connection)))
|
while((ev = xcb_poll_for_event(globalconf.connection)))
|
||||||
{
|
|
||||||
do
|
|
||||||
{
|
{
|
||||||
xcb_handle_event(globalconf.evenths, ev);
|
xcb_handle_event(globalconf.evenths, ev);
|
||||||
p_delete(&ev);
|
p_delete(&ev);
|
||||||
}
|
}
|
||||||
while((ev = xcb_poll_for_event(globalconf.connection)));
|
|
||||||
|
|
||||||
awesome_refresh(globalconf.connection);
|
awesome_refresh(globalconf.connection);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
a_xcb_io_cb(EV_P_ ev_io *w, int revents)
|
a_xcb_io_cb(EV_P_ ev_io *w, int revents)
|
||||||
|
|
Loading…
Reference in New Issue