mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Destroy empty workspaces when moving away
This commit is contained in:
parent
2d46050281
commit
01af343912
5 changed files with 104 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue