remove goto statement
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
bacd864400
commit
9cbee5b32e
|
@ -153,20 +153,19 @@ a_xcb_check_cb(EV_P_ ev_check *w, int revents)
|
||||||
|
|
||||||
while((ev = xcb_poll_for_event(globalconf.connection)))
|
while((ev = xcb_poll_for_event(globalconf.connection)))
|
||||||
{
|
{
|
||||||
xev_restart:
|
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)));
|
||||||
|
|
||||||
layout_refresh();
|
layout_refresh();
|
||||||
statusbar_refresh();
|
statusbar_refresh();
|
||||||
titlebar_refresh();
|
titlebar_refresh();
|
||||||
|
|
||||||
xcb_aux_sync(globalconf.connection);
|
xcb_aux_sync(globalconf.connection);
|
||||||
|
}
|
||||||
/* synchronize can wake up X and pull new events in the queue */
|
|
||||||
if((ev = xcb_poll_for_event(globalconf.connection)))
|
|
||||||
goto xev_restart;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue