mirror of
https://github.com/swaywm/sway.git
synced 2025-11-10 13:29:51 -05:00
destroys empty workspace + minor bugfixes
This commit is contained in:
parent
4aeaaa8abc
commit
beabb12d63
9 changed files with 36 additions and 15 deletions
|
|
@ -119,7 +119,7 @@ void arrange_windows(swayc_t *container, int width, int height) {
|
|||
}
|
||||
}
|
||||
|
||||
void init_layout() {
|
||||
void init_layout(void) {
|
||||
root_container.type = C_ROOT;
|
||||
root_container.layout = L_NONE;
|
||||
root_container.children = create_list();
|
||||
|
|
@ -128,6 +128,9 @@ void init_layout() {
|
|||
|
||||
void free_swayc(swayc_t *container) {
|
||||
// NOTE: Does not handle moving children into a different container
|
||||
if (container->parent) {
|
||||
remove_container_from_parent(container->parent, container);
|
||||
}
|
||||
list_free(container->children);
|
||||
if (container->name) {
|
||||
free(container->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue