read the per-app position x/y values from the right xml node
authorDana Jansens <danakj@orodu.net>
Fri, 14 Oct 2011 22:52:20 +0000 (18:52 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:56:42 +0000 (18:56 -0400)
openbox/config.c

index 5e30f9e1ce9dd3870d8bf97f27862426be4e3a20..5c1d08c416db40be8d6d77c4f84b223fe2b49389 100644 (file)
@@ -258,7 +258,7 @@ static void parse_per_app_settings(xmlNodePtr node, gpointer d)
                 if ((c = obt_xml_find_sibling(n->children, "x")))
                     if (!obt_xml_node_contains(c, "default")) {
                         ObConfigValue *v = config_value_new_string(
-                            obt_xml_node_string(node));
+                            obt_xml_node_string(c));
                         config_value_gravity_coord(v, &settings->position.x);
                         config_value_unref(v);
                         x_pos_given = TRUE;
@@ -267,7 +267,7 @@ static void parse_per_app_settings(xmlNodePtr node, gpointer d)
                 if (x_pos_given && (c = obt_xml_find_sibling(n->children, "y")))
                     if (!obt_xml_node_contains(c, "default")) {
                         ObConfigValue *v = config_value_new_string(
-                            obt_xml_node_string(node));
+                            obt_xml_node_string(c));
                         config_value_gravity_coord(v, &settings->position.y);
                         config_value_unref(v);
                         settings->pos_given = TRUE;