aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-02-15 21:01:54 -0500
committerBrian Ashworth <bosrsf04@gmail.com>2019-02-17 11:50:07 -0500
commit487c83f0de9ca2a7650ad636eed6fd694ddcb82e (patch)
tree1d679e8eb33c62bd60c14a4be4f3d5c8d89082fe /include
parentcd10e755c1b820b15eac448451d6b9dabd339fc0 (diff)
downloadsway-487c83f0de9ca2a7650ad636eed6fd694ddcb82e.tar.xz
Add workspace {prev,next}_on_output --create
This creates the next workspace if you hit the end.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/workspace.h6
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);