From: Dana Jansens Date: Fri, 13 Jul 2007 15:37:53 +0000 (-0400) Subject: let you specify up/down as well as top/bottom for resizerelative action - backwards... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=27aec195acea0d28272c155ebd3f2bdd43c050cf;p=chaz%2Fopenbox let you specify up/down as well as top/bottom for resizerelative action - backwards compat --- diff --git a/openbox/actions/resizerelative.c b/openbox/actions/resizerelative.c index 075c9e73..668a063f 100644 --- a/openbox/actions/resizerelative.c +++ b/openbox/actions/resizerelative.c @@ -35,9 +35,11 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node) o->left = parse_int(doc, n); if ((n = parse_find_node("right", node))) o->right = parse_int(doc, n); - if ((n = parse_find_node("top", node))) + if ((n = parse_find_node("top", node)) || + (n = parse_find_node("up", node))) o->top = parse_int(doc, n); - if ((n = parse_find_node("bottom", node))) + if ((n = parse_find_node("bottom", node)) || + (n = parse_find_node("down", node))) o->bottom = parse_int(doc, n); return o;