+ xmlNodePtr n;
+
+ if ((n = parse_find_node("position", node))) {
+ if (parse_contains("TopLeft", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_NORTHWEST;
+ else if (parse_contains("Top", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_NORTH;
+ else if (parse_contains("TopRight", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_NORTHEAST;
+ else if (parse_contains("Right", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_EAST;
+ else if (parse_contains("BottomRight", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_SOUTHEAST;
+ else if (parse_contains("Bottom", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_SOUTH;
+ else if (parse_contains("BottomLeft", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_SOUTHWEST;
+ else if (parse_contains("Left", doc, n))
+ config_dock_floating = FALSE,
+ config_dock_pos = OB_DIRECTION_WEST;
+ else if (parse_contains("Floating", doc, n))
+ config_dock_floating = TRUE;
+ }
+ 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;