+ if (config_dock_floating) {
+ if ((n = parse_find_node("floatingX", node)))
+ config_dock_x = parse_int(doc, n);
+ if ((n = parse_find_node("floatingY", node)))
+ config_dock_y = parse_int(doc, n);
+ }
+ if ((n = parse_find_node("stacking", node))) {
+ if (parse_contains("top", doc, n))
+ config_dock_layer = OB_STACKING_LAYER_TOP;
+ else if (parse_contains("normal", doc, n))
+ config_dock_layer = OB_STACKING_LAYER_NORMAL;
+ else if (parse_contains("bottom", doc, n))
+ config_dock_layer = OB_STACKING_LAYER_BELOW;
+ }
+ if ((n = parse_find_node("direction", node))) {
+ if (parse_contains("horizontal", doc, n))
+ config_dock_orient = OB_ORIENTATION_HORZ;
+ else if (parse_contains("vertical", doc, n))
+ config_dock_orient = OB_ORIENTATION_VERT;
+ }
+ if ((n = parse_find_node("autoHide", node)))
+ config_dock_hide = parse_bool(doc, n);
+ if ((n = parse_find_node("hideTimeout", node)))
+ config_dock_hide_timeout = parse_int(doc, n);
+}
+
+void config_startup()
+{
+ config_focus_new = TRUE;
+ config_focus_follow = FALSE;
+ config_focus_last = TRUE;
+ config_focus_last_on_desktop = TRUE;
+ config_focus_popup = TRUE;
+
+ parse_register("focus", parse_focus, NULL);
+
+ config_theme = NULL;
+
+ config_title_layout = g_strdup("NLIMC");
+
+ parse_register("theme", parse_theme, NULL);
+
+ config_desktops_num = 4;
+ config_desktops_names = NULL;
+
+ parse_register("desktops", parse_desktops, NULL);
+
+ config_redraw_resize = TRUE;
+
+ parse_register("resize", parse_resize, NULL);
+
+ config_dock_layer = OB_STACKING_LAYER_TOP;
+ config_dock_pos = OB_DIRECTION_NORTHEAST;
+ config_dock_floating = FALSE;
+ config_dock_x = 0;
+ config_dock_y = 0;
+ config_dock_orient = OB_ORIENTATION_VERT;
+ config_dock_hide = FALSE;
+ config_dock_hide_timeout = 3000;
+
+ parse_register("dock", parse_dock, NULL);
+
+ parse_register("keyboard", parse_keyboard, NULL);
+
+ config_mouse_threshold = 3;
+ config_mouse_dclicktime = 200;
+
+ parse_register("mouse", parse_mouse, NULL);
+}
+
+void config_shutdown()
+{
+ GSList *it;
+
+ g_free(config_theme);