]> Dogcows Code - chaz/openbox/commitdiff
let you specify up/down as well as top/bottom for resizerelative action - backwards...
authorDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 15:37:53 +0000 (11:37 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 13 Jul 2007 15:37:53 +0000 (11:37 -0400)
openbox/actions/resizerelative.c

index 075c9e7348dcf3088e642c5375c9962588506889..668a063fec2ab0fd2989c9aad7a60f676f1be94e 100644 (file)
@@ -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;
This page took 0.025979 seconds and 4 git commands to generate.