mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
workspaces: allow referencing the current workspace
This value allows a user to reference the currently visible workspace.
This commit is contained in:
parent
22e3be40e5
commit
e864419194
2 changed files with 5 additions and 3 deletions
|
|
@ -127,9 +127,9 @@ Actions are used in menus and keyboard/mouse bindings.
|
|||
*<action name="GoToDesktop" to="value" wrap="yes" />*
|
||||
Switch to workspace.
|
||||
|
||||
*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.
|
||||
*to* The workspace to switch to. Supported values are "current", "last",
|
||||
"left", "right" or the full name of a workspace or its index (starting
|
||||
at 1) as configured in rc.xml.
|
||||
|
||||
*wrap* [yes|no] Wrap around from last desktop to first, and vice
|
||||
versa. Default yes.
|
||||
|
|
|
|||
|
|
@ -340,6 +340,8 @@ workspaces_find(struct workspace *anchor, const char *name, bool wrap)
|
|||
return target;
|
||||
}
|
||||
}
|
||||
} else if (!strcasecmp(name, "current")) {
|
||||
return anchor;
|
||||
} else if (!strcasecmp(name, "last")) {
|
||||
return anchor->server->workspace_last;
|
||||
} else if (!strcasecmp(name, "left")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue