static void free_func(gpointer options);
static gboolean run_func(ObActionsData *data, gpointer options);
-void action_resizerelative_startup()
+void action_resizerelative_startup(void)
{
actions_register("ResizeRelative",
setup_func,
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;
yoff = yoff == 0 ? 0 :
(yoff < 0 ? MAX(yoff, oh-nh) : MIN(yoff, oh-nh));
- actions_client_move(data, FALSE);
- client_move_resize(c, x + xoff, y + yoff, nw, nh);
actions_client_move(data, TRUE);
+ client_move_resize(c, x + xoff, y + yoff, nw, nh);
+ actions_client_move(data, FALSE);
}
return FALSE;