- if ((n = parse_find_node("y", node))) {
- gchar *s = parse_string(doc, n);
- if (!g_ascii_strcasecmp(s, "center"))
- o->ycenter = TRUE;
- else {
- if (s[0] == '-')
- o->yopposite = TRUE;
- if (s[0] == '-' || s[0] == '+')
- o->y = atoi(s+1);
+ obt_xml_attr_bool(n, "client", &o->h_sets_client_size);
+ }
+
+ if ((n = obt_xml_find_node(node, "monitor"))) {
+ gchar *s = obt_xml_node_string(n);
+ if (g_ascii_strcasecmp(s, "current") != 0) {
+ if (!g_ascii_strcasecmp(s, "all"))
+ o->monitor = ALL_MONITORS;
+ else if(!g_ascii_strcasecmp(s, "next"))
+ o->monitor = NEXT_MONITOR;
+ else if(!g_ascii_strcasecmp(s, "prev"))
+ o->monitor = PREV_MONITOR;