From 04eff691c9c63ba9c3acab8dba01cc7c4a5277bc Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sat, 30 Aug 2008 09:21:48 +0200 Subject: [PATCH] Use xcb_aux_sync to register error Otherwise we get multiple awesome at the same time. Signed-off-by: Julien Danjou --- awesome.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index c31929581..c1bbd8806 100644 --- a/awesome.c +++ b/awesome.c @@ -382,7 +382,7 @@ main(int argc, char **argv) } /* 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 */ xcb_poll_for_event_loop(globalconf.evenths); @@ -474,7 +474,7 @@ main(int argc, char **argv) systray_init(screen_nbr); } - xcb_flush(globalconf.connection); + xcb_aux_sync(globalconf.connection); luaA_cs_init(); a_dbus_init();