workspaces: allow referencing the current workspace

This value allows a user to reference the currently visible workspace.
This commit is contained in:
Consus 2023-08-29 13:12:09 +03:00 committed by Johan Malm
parent 22e3be40e5
commit e864419194
2 changed files with 5 additions and 3 deletions

View file

@ -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")) {