From: Dana Jansens Date: Fri, 14 Oct 2011 22:52:20 +0000 (-0400) Subject: read the per-app position x/y values from the right xml node X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=7f7d6b410a727cd37eac6da6df1f5d04130ac14c;p=dana%2Fopenbox.git read the per-app position x/y values from the right xml node --- diff --git a/openbox/config.c b/openbox/config.c index 5e30f9e1..5c1d08c4 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -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;