aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-03-30 11:58:17 -0400
committerFurkan Sahin <furkan-dev@proton.me>2018-03-30 11:58:17 -0400
commit29a5a656abde85704bcce3ffc9e4b0881c939b00 (patch)
treeb67a66382125811fde75e5c3dff37d7081860c78 /include
parent5acb7f2e50c77ecd7c4ea1683cb44d64da386b98 (diff)
Fix workspace deletion edge cases
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h2
-rw-r--r--include/sway/tree/layout.h2
-rw-r--r--include/sway/tree/workspace.h2
3 files changed, 5 insertions, 1 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 24e8468e..6aa66da0 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -104,7 +104,7 @@ struct sway_container *container_workspace_destroy(
struct sway_container *container_view_destroy(struct sway_container *view);
-void container_destroy(struct sway_container *cont);
+struct sway_container *container_destroy(struct sway_container *cont);
struct sway_container *container_set_layout(struct sway_container *container,
enum sway_container_layout layout);
diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h
index 8239366b..0a904c4b 100644
--- a/include/sway/tree/layout.h
+++ b/include/sway/tree/layout.h
@@ -39,6 +39,8 @@ struct sway_container *container_add_sibling(struct sway_container *parent,
struct sway_container *container_remove_child(struct sway_container *child);
+struct sway_container *container_reap_empty(struct sway_container *container);
+
void container_move_to(struct sway_container* container,
struct sway_container* destination);
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index d73b29c1..4e4c3450 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -23,4 +23,6 @@ struct sway_container *workspace_output_prev(struct sway_container *current);
struct sway_container *workspace_prev(struct sway_container *current);
+bool workspace_is_visible(struct sway_container *ws);
+
#endif