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>
Fri, 14 Oct 2011 22:52:20 +0000 (18:52 -0400)
openbox/config.c

index 9dd803beb6a4f7eaaf5fd017d19dfa30bcee6ecf..be1e86e9effc8373d3aa2f9872d9b3ccc1d7c9ed 100644 (file)
@@ -256,7 +256,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;
@@ -265,7 +265,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;