aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-08-24 08:27:05 -0400
committerGitHub <noreply@github.com>2018-08-24 08:27:05 -0400
commite86d99acd655815781cd2e23877ce58ab5b24826 (patch)
tree5e056a7859751c68c0cfb425fc6f37599c3f7400 /include/sway/tree/workspace.h
parentf53c28d52a6954108592c246c013c0c4b076f09c (diff)
parentb6058703fa240780d66fac8ef96982c66b2b0263 (diff)
downloadsway-e86d99acd655815781cd2e23877ce58ab5b24826.tar.xz
Merge pull request #2499 from RyanDwyer/refactor-destroy-functions
Refactor destroy functions and save workspaces when there's no outputs
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r--include/sway/tree/workspace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 35c91017..efcb7c69 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -18,6 +18,15 @@ extern char *prev_workspace_name;
struct sway_container *workspace_get_initial_output(const char *name);
+struct sway_container *workspace_create(struct sway_container *output,
+ const char *name);
+
+void workspace_destroy(struct sway_container *workspace);
+
+void workspace_begin_destroy(struct sway_container *workspace);
+
+void workspace_consider_destroy(struct sway_container *ws);
+
char *workspace_next_name(const char *output_name);
bool workspace_switch(struct sway_container *workspace,