*<action name="Resize">*
Begin interactive resize of window under cursor
+*<action name="MoveTo" x="" y="" />*
+ Move to position (x, y)
+
*<action name="SnapToEdge" direction="value" />*
Resize window to fill half the output in the given direction. Supports
directions "left", "up", "right", "down" and "center".
ACTION_TYPE_RAISE,
ACTION_TYPE_LOWER,
ACTION_TYPE_RESIZE,
+ ACTION_TYPE_MOVETO,
ACTION_TYPE_GO_TO_DESKTOP,
ACTION_TYPE_SEND_TO_DESKTOP,
ACTION_TYPE_SNAP_TO_REGION,
"Raise",
"Lower",
"Resize",
+ "MoveTo",
"GoToDesktop",
"SendToDesktop",
"SnapToRegion",
goto cleanup;
}
break;
+ case ACTION_TYPE_MOVETO:
+ if (!strcmp(argument, "x") || !strcmp(argument, "y")) {
+ action_arg_add_int(action, argument, atoi(content));
+ goto cleanup;
+ }
+ break;
case ACTION_TYPE_SEND_TO_DESKTOP:
if (!strcmp(argument, "follow")) {
action_arg_add_bool(action, argument, parse_bool(content, true));
resize_edges);
}
break;
+ case ACTION_TYPE_MOVETO:
+ if (view) {
+ int x = get_arg_value_int(action, "x", 0);
+ int y = get_arg_value_int(action, "y", 0);
+ view_move(view, x, y);
+ }
+ break;
case ACTION_TYPE_GO_TO_DESKTOP: {
const char *to = get_arg_value_str(action, "to", NULL);
if (!to) {