diff options
author | Drew DeVault <[email protected]> | 2018-03-30 00:00:23 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2018-03-30 00:00:23 -0400 |
commit | 7162b9bea4d66d61376ad3605e23e2d83bb95201 (patch) | |
tree | 6f7a3121f15503a923c1ce53bf2bee368c6149a6 /include/sway/tree/workspace.h | |
parent | 472e81f35d689d67cda241acafda91c688d61046 (diff) | |
parent | 8f490d7d2dbadfe85dcf3dcd972471e86671442a (diff) |
Merge pull request #1654 from acrisci/refactor-2-electric-boogaloo
Revert "Merge pull request #1653 from swaywm/revert-1647-refactor-tree"
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r-- | include/sway/tree/workspace.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h new file mode 100644 index 00000000..d73b29c1 --- /dev/null +++ b/include/sway/tree/workspace.h @@ -0,0 +1,26 @@ +#ifndef _SWAY_WORKSPACE_H +#define _SWAY_WORKSPACE_H + +#include "sway/tree/container.h" + +extern char *prev_workspace_name; + +char *workspace_next_name(const char *output_name); + +struct sway_container *workspace_create(const char *name); + +bool workspace_switch(struct sway_container *workspace); + +struct sway_container *workspace_by_number(const char* name); + +struct sway_container *workspace_by_name(const char*); + +struct sway_container *workspace_output_next(struct sway_container *current); + +struct sway_container *workspace_next(struct sway_container *current); + +struct sway_container *workspace_output_prev(struct sway_container *current); + +struct sway_container *workspace_prev(struct sway_container *current); + +#endif |