diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-03-30 11:39:00 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-03-30 11:39:00 -0400 |
| commit | 3f934a64d3016c86dc19b6ef8e0037faa6317843 (patch) | |
| tree | ae5197dabda270035b383d45b5c113afab2ebfbd /include | |
| parent | c0c3b97812ecccfa9f338d1029d7777b23b1c0b3 (diff) | |
| parent | 5a079bca43691baa1d77f76ee00cd89b73d9f949 (diff) | |
Merge pull request #1658 from swaywm/delete-empty-ws
Destroy empty workspaces when moving away
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/tree/container.h | 8 | ||||
| -rw-r--r-- | include/sway/tree/layout.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index 3bb497db..24e8468e 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h @@ -99,8 +99,13 @@ struct sway_container *container_view_create( struct sway_container *container_output_destroy(struct sway_container *output); +struct sway_container *container_workspace_destroy( + struct sway_container *workspace); + struct sway_container *container_view_destroy(struct sway_container *view); +void container_destroy(struct sway_container *cont); + struct sway_container *container_set_layout(struct sway_container *container, enum sway_container_layout layout); @@ -140,4 +145,7 @@ void container_for_each_descendant_bfs(struct sway_container *container, void container_for_each_descendant_dfs(struct sway_container *container, void (*f)(struct sway_container *container, void *data), void *data); +bool container_has_anscestor(struct sway_container *descendant, + struct sway_container *anscestor); + #endif diff --git a/include/sway/tree/layout.h b/include/sway/tree/layout.h index ad52bdb0..8239366b 100644 --- a/include/sway/tree/layout.h +++ b/include/sway/tree/layout.h @@ -39,6 +39,9 @@ struct sway_container *container_add_sibling(struct sway_container *parent, struct sway_container *container_remove_child(struct sway_container *child); +void container_move_to(struct sway_container* container, + struct sway_container* destination); + enum sway_container_layout container_get_default_layout(struct sway_container *output); void container_sort_workspaces(struct sway_container *output); |
