From 487c83f0de9ca2a7650ad636eed6fd694ddcb82e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 15 Feb 2019 21:01:54 -0500 Subject: Add workspace {prev,next}_on_output --create This creates the next workspace if you hit the end. --- include/sway/tree/workspace.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/sway/tree') 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); -- cgit v1.2.3-54-g00ecf