action: support SendToDesktop 'follow' option

Make follow 'true' by default as per Openbox 3.6 specification.
Note: this is an interface change.

Fixes: issue #841
This commit is contained in:
Johan Malm 2023-03-26 10:57:53 +01:00 committed by Consolatis
parent bdf6e13881
commit 33b98b19aa
6 changed files with 67 additions and 17 deletions

View file

@ -86,13 +86,19 @@ Actions are used in menus and keyboard/mouse bindings.
any windows, the cursor is centered on the given output.
*<action name="GoToDesktop" to="value" />*
Switch to workspace. Supported values are "last", "left", "right" or the
full name of a workspace or its index (starting at 1) as configured in
rc.xml.
Switch to workspace.
*<action name="SendToDesktop" to="value" />*
*to* The workspace to switch to. Supported values are "last", "left",
"right" or the full name of a workspace or its index (starting at 1)
as configured in rc.xml.
*<action name="SendToDesktop" to="value" follow="yes" />*
Send active window to workspace.
Supported values are the same as for GoToDesktop.
*to* The workspace to send the window to. Supported values are the same
as for GoToDesktop.
*follow* [yes|no] Also switch to the specified workspace. Default yes.
*<action name="None">*
If used as the only action for a binding: clear an earlier defined binding.

View file

@ -25,11 +25,9 @@
<menu id="workspaces" label="Workspace">
<item label="Move left">
<action name="SendToDesktop" to="left" />
<action name="GoToDesktop" to="left" />
</item>
<item label="Move right">
<action name="SendToDesktop" to="right" />
<action name="GoToDesktop" to="right" />
</item>
</menu>
<item label="Close">