diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-02-15 21:01:54 -0500 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-17 11:50:07 -0500 |
commit | 487c83f0de9ca2a7650ad636eed6fd694ddcb82e (patch) | |
tree | 1d679e8eb33c62bd60c14a4be4f3d5c8d89082fe /include/sway/tree | |
parent | cd10e755c1b820b15eac448451d6b9dabd339fc0 (diff) | |
download | sway-487c83f0de9ca2a7650ad636eed6fd694ddcb82e.tar.xz |
Add workspace {prev,next}_on_output --create
This creates the next workspace if you hit the end.
Diffstat (limited to 'include/sway/tree')
-rw-r--r-- | include/sway/tree/workspace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h index 7abfbff1..41b59796 100644 --- a/include/sway/tree/workspace.h +++ b/include/sway/tree/workspace.h @@ -67,11 +67,13 @@ struct sway_workspace *workspace_by_number(const char* name); struct sway_workspace *workspace_by_name(const char*); -struct sway_workspace *workspace_output_next(struct sway_workspace *current); +struct sway_workspace *workspace_output_next( + struct sway_workspace *current, bool create); struct sway_workspace *workspace_next(struct sway_workspace *current); -struct sway_workspace *workspace_output_prev(struct sway_workspace *current); +struct sway_workspace *workspace_output_prev( + struct sway_workspace *current, bool create); struct sway_workspace *workspace_prev(struct sway_workspace *current); |