core: ungrab before init dbus

D-Bus seems to require X access, otherwise it get stuck.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-11 11:15:00 +02:00
parent 1cdd098fb1
commit 6690456668

View file

@ -386,6 +386,7 @@ main(int argc, char **argv)
/* Grab server */
xcb_grab_server(globalconf.connection);
xcb_flush(globalconf.connection);
/* Get the file descriptor corresponding to the X connection */
xfd = xcb_get_file_descriptor(globalconf.connection);
@ -504,6 +505,9 @@ main(int argc, char **argv)
systray_init(screen_nbr);
}
/* Grab server */
xcb_ungrab_server(globalconf.connection);
xcb_aux_sync(globalconf.connection);
luaA_cs_init();
@ -512,9 +516,6 @@ main(int argc, char **argv)
/* refresh everything before waiting events */
awesome_refresh(globalconf.connection);
/* Grab server */
xcb_ungrab_server(globalconf.connection);
/* main event loop */
ev_loop(globalconf.loop, 0);