summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-13 11:37:53 -0400
committerDana Jansens <danakj@orodu.net>2007-07-13 11:37:53 -0400
commit27aec195acea0d28272c155ebd3f2bdd43c050cf (patch)
tree287de5618d876af979906745e87d5ecae491105b
parent6ed8bd929d3b823c92d63e41d07ae361aa636c52 (diff)
let you specify up/down as well as top/bottom for resizerelative action - backwards compat
-rw-r--r--openbox/actions/resizerelative.c6
1 files changed, 4 insertions, 2 deletions
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;