mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
1cdd098fb1
commit
6690456668
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue