summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-02-15 21:01:54 -0500
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-02-17 11:50:07 -0500
commit487c83f0de9ca2a7650ad636eed6fd694ddcb82e (patch)
tree1d679e8eb33c62bd60c14a4be4f3d5c8d89082fe /include
parentRemove refs to unimplemented debuglog command (diff)
downloadsway-487c83f0de9ca2a7650ad636eed6fd694ddcb82e.tar.gz
sway-487c83f0de9ca2a7650ad636eed6fd694ddcb82e.tar.zst
sway-487c83f0de9ca2a7650ad636eed6fd694ddcb82e.zip
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);
67 67
68struct sway_workspace *workspace_by_name(const char*); 68struct sway_workspace *workspace_by_name(const char*);
69 69
70struct sway_workspace *workspace_output_next(struct sway_workspace *current); 70struct sway_workspace *workspace_output_next(
71 struct sway_workspace *current, bool create);
71 72
72struct sway_workspace *workspace_next(struct sway_workspace *current); 73struct sway_workspace *workspace_next(struct sway_workspace *current);
73 74
74struct sway_workspace *workspace_output_prev(struct sway_workspace *current); 75struct sway_workspace *workspace_output_prev(
76 struct sway_workspace *current, bool create);
75 77
76struct sway_workspace *workspace_prev(struct sway_workspace *current); 78struct sway_workspace *workspace_prev(struct sway_workspace *current);
77 79