Add workspace {prev,next}_on_output --create

This creates the next workspace if you hit the end.
This commit is contained in:
Drew DeVault 2019-02-15 21:01:54 -05:00 committed by Brian Ashworth
parent cd10e755c1
commit 487c83f0de
3 changed files with 32 additions and 16 deletions

View file

@ -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);