mirror of
https://github.com/swaywm/sway.git
synced 2025-11-21 06:59:48 -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
|
|
@ -8,6 +8,7 @@
|
|||
#include "sway/tree/container.h"
|
||||
#include "sway/tree/layout.h"
|
||||
#include "sway/tree/view.h"
|
||||
#include "sway/tree/workspace.h"
|
||||
#include "list.h"
|
||||
|
||||
struct cmd_results *cmd_floating(int argc, char **argv) {
|
||||
|
|
@ -24,7 +25,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) {
|
|||
if (container->type == C_WORKSPACE) {
|
||||
// Wrap the workspace's children in a container so we can float it
|
||||
struct sway_container *workspace = container;
|
||||
container = container_wrap_children(container);
|
||||
container = workspace_wrap_children(container);
|
||||
workspace->layout = L_HORIZ;
|
||||
seat_set_focus(config->handler_context.seat, container);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue