mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Rename container_sort_workspaces and container_wrap_children
This commit renames container_sort_workspaces to output_sort_workspaces and moves it to output.c. This also renames container_wrap_children to workspace_wrap_children and moves it to workspace.c. This function is only called with workspaces.
This commit is contained in:
parent
cfe205b36f
commit
16c663ed49
12 changed files with 54 additions and 54 deletions
|
|
@ -270,7 +270,7 @@ static struct sway_container *container_output_destroy(
|
|||
container_destroy(workspace);
|
||||
}
|
||||
|
||||
container_sort_workspaces(new_output);
|
||||
output_sort_workspaces(new_output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1305,15 +1305,3 @@ bool container_is_fullscreen_or_child(struct sway_container *container) {
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
struct sway_container *container_wrap_children(struct sway_container *parent) {
|
||||
struct sway_container *middle = container_create(C_CONTAINER);
|
||||
middle->layout = parent->layout;
|
||||
while (parent->children->length) {
|
||||
struct sway_container *child = parent->children->items[0];
|
||||
container_remove_child(child);
|
||||
container_add_child(middle, child);
|
||||
}
|
||||
container_add_child(parent, middle);
|
||||
return middle;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue