mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05: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
|
|
@ -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