#include "focus.h"
#include "moveresize.h"
#include "frame.h"
+#include "keyboard.h"
+#include "mouse.h"
#include "extensions.h"
#include "grab.h"
#include "plugin.h"
startup_save();
if (screen_annex()) { /* it will be ours! */
+ ObParseInst *i;
+
/* startup the parsing so everything can register sections of the rc */
- parse_startup();
+ i = parse_startup();
/* anything that is going to read data from the rc file needs to be
in this group */
window_startup();
plugin_startup();
/* load the plugins specified in the pluginrc */
- plugin_loadall();
+ plugin_loadall(i);
/* set up the kernel config shit */
- config_startup();
- menu_startup();
+ config_startup(i);
+ menu_startup(i);
/* parse/load user options */
if (parse_load_rc(&doc, &node))
- parse_tree(doc, node->xmlChildrenNode, NULL);
+ parse_tree(i, doc, node->xmlChildrenNode);
/* we're done with parsing now, kill it */
- parse_shutdown();
+ parse_shutdown(i);
+
+ menu_parse();
/* load the theme specified in the rc file */
ob_rr_theme = RrThemeNew(ob_rr_inst, config_theme);
group_startup();
client_startup();
dock_startup();
+ keyboard_startup();
+ mouse_startup();
/* call startup for all the plugins */
plugin_startall();
dock_remove_all();
client_unmanage_all();
+ menu_shutdown(); /* destroy menus before unloading plugins */
plugin_shutdown(); /* calls all the plugins' shutdown functions */
+ mouse_shutdown();
+ keyboard_shutdown();
dock_shutdown();
client_shutdown();
group_shutdown();
screen_shutdown();
focus_shutdown();
moveresize_shutdown();
- menu_shutdown();
window_shutdown();
grab_shutdown();
event_shutdown();