Use xcb_aux_sync to register error

Otherwise we get multiple awesome at the same time.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-30 09:21:48 +02:00
parent 3fecec15c3
commit 04eff691c9
1 changed files with 2 additions and 2 deletions

View File

@ -382,7 +382,7 @@ main(int argc, char **argv)
} }
/* Need to xcb_flush to validate error handler */ /* Need to xcb_flush to validate error handler */
xcb_flush(globalconf.connection); xcb_aux_sync(globalconf.connection);
/* Process all errors in the queue if any */ /* Process all errors in the queue if any */
xcb_poll_for_event_loop(globalconf.evenths); xcb_poll_for_event_loop(globalconf.evenths);
@ -474,7 +474,7 @@ main(int argc, char **argv)
systray_init(screen_nbr); systray_init(screen_nbr);
} }
xcb_flush(globalconf.connection); xcb_aux_sync(globalconf.connection);
luaA_cs_init(); luaA_cs_init();
a_dbus_init(); a_dbus_init();