awesome: init systray earlier

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-02 12:24:05 +02:00
parent df843a8452
commit 85cbdc044b
1 changed files with 11 additions and 11 deletions

View File

@ -474,17 +474,6 @@ main(int argc, char **argv)
globalconf.keysyms, &globalconf.numlockmask, globalconf.keysyms, &globalconf.numlockmask,
&globalconf.shiftlockmask, &globalconf.capslockmask); &globalconf.shiftlockmask, &globalconf.capslockmask);
/* Parse and run configuration file */
luaA_parserc(confpath, true);
/* scan existing windows */
scan();
/* process all errors in the queue if any */
xcb_event_poll_for_event_loop(&globalconf.evenths);
a_xcb_set_event_handlers();
a_xcb_set_property_handlers();
/* do this only for real screen */ /* do this only for real screen */
for(screen_nbr = 0; for(screen_nbr = 0;
screen_nbr < xcb_setup_roots_length(xcb_get_setup(globalconf.connection)); screen_nbr < xcb_setup_roots_length(xcb_get_setup(globalconf.connection));
@ -507,6 +496,17 @@ main(int argc, char **argv)
systray_init(screen_nbr); systray_init(screen_nbr);
} }
/* Parse and run configuration file */
luaA_parserc(confpath, true);
/* scan existing windows */
scan();
/* process all errors in the queue if any */
xcb_event_poll_for_event_loop(&globalconf.evenths);
a_xcb_set_event_handlers();
a_xcb_set_property_handlers();
/* Grab server */ /* Grab server */
xcb_ungrab_server(globalconf.connection); xcb_ungrab_server(globalconf.connection);