*<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.
return target;
}
}
+ } else if (!strcasecmp(name, "current")) {
+ return anchor;
} else if (!strcasecmp(name, "last")) {
return anchor->server->workspace_last;
} else if (!strcasecmp(name, "left")) {