summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-02-15 21:01:54 -0500
committerFurkan Sahin <furkan-dev@proton.me>2019-02-15 21:01:54 -0500
commit625f360512c7c3c9d941ad5825d5bb70f8b0d867 (patch)
tree1d679e8eb33c62bd60c14a4be4f3d5c8d89082fe /include
parent9fdec29ca918963dcc147d58e3c8c1908179564a (diff)
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);