to the center of the window. If the given output does not contain
any windows, the cursor is centered on the given output.
-*<action name="MoveToOutput" name="HDMI-A-1" direction="value" wrap="no" />*
+*<action name="MoveToOutput" output="HDMI-A-1" direction="value" wrap="no" />*
Moves active window to other output, unless the window state is
fullscreen.
- If *name* is specified, the window will be sent directly to the specified
- output and *direction* is ignored. If *name* is omitted, *direction* may
+ If *output* is specified, the window will be sent directly to the specified
+ output and *direction* is ignored. If *output* is omitted, *direction* may
be one of "left", "right", "up" or "down" to indicate that the window
should be moved to the next output in that direction (if one exists).
}
break;
case ACTION_TYPE_MOVE_TO_OUTPUT:
- if (!strcmp(argument, "name")) {
+ if (!strcmp(argument, "output")) {
action_arg_add_str(action, argument, content);
goto cleanup;
}
if (!view) {
break;
}
- const char *name = action_get_str(action, "name", NULL);
+ const char *output_name = action_get_str(action, "output", NULL);
struct output *target = NULL;
- if (name) {
- target = output_from_name(view->server, name);
+ if (output_name) {
+ target = output_from_name(view->server, output_name);
} else {
/* Config parsing makes sure that direction is a valid direction */
enum view_edge edge = action_get_int(action, "direction", 0);