diff options
author | emersion <[email protected]> | 2018-04-29 13:44:37 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2018-04-29 13:44:37 +0100 |
commit | 78e3bc1329e865fe8df2da77693868f38380ab30 (patch) | |
tree | 472f59488b8ae77b5f296de8d17e5ba68d4407fb /sway/commands/layout.c | |
parent | 24ab66d123ab493feb3c2343cbc9d93625b668d7 (diff) | |
parent | 976e6b99b62891a72e48fca21b93708e060c134a (diff) |
Merge pull request #1854 from RyanDwyer/refactor-arrange-windows
Refactor arrange_windows()
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r-- | sway/commands/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index ca45a6c8..bb36bb18 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c @@ -1,8 +1,8 @@ #include <string.h> #include <strings.h> #include "sway/commands.h" +#include "sway/tree/arrange.h" #include "sway/tree/container.h" -#include "sway/tree/layout.h" #include "log.h" struct cmd_results *cmd_layout(int argc, char **argv) { @@ -48,7 +48,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) { } } - arrange_windows(parent, parent->width, parent->height); + arrange_children_of(parent); return cmd_results_new(CMD_SUCCESS, NULL, NULL); } |