diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-07-13 11:37:53 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-07-13 11:37:53 -0400 |
| commit | 27aec195acea0d28272c155ebd3f2bdd43c050cf (patch) | |
| tree | 287de5618d876af979906745e87d5ecae491105b /openbox/actions | |
| parent | 6ed8bd929d3b823c92d63e41d07ae361aa636c52 (diff) | |
let you specify up/down as well as top/bottom for resizerelative action - backwards compat
Diffstat (limited to 'openbox/actions')
| -rw-r--r-- | openbox/actions/resizerelative.c | 6 |
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; |
