src/action.c: fix MoveToOutput action by renaming 'name' argument

We were using the argument name 'name' before
which is already used by the action itself:
`<action name="MoveToOutput" name="HDMI-A-1" />`

Change the argument name to "output" which also
matches the `FocusOutput` action.

Fixes: #1589
Reported-by: @bnason (thanks!)
This commit is contained in:
Consolatis 2024-03-06 04:30:17 +01:00 committed by Johan Malm
parent bcf2d7e091
commit 983ca66d07
2 changed files with 7 additions and 7 deletions

View file

@ -163,12 +163,12 @@ Actions are used in menus and keyboard/mouse bindings.
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).