diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 13:23:34 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-03 13:23:34 -0400 |
commit | 9b567fc37e83ed9f0cbb028fd801a2f2609c79dc (patch) | |
tree | a1ebdea49233f10c016664159bb9e8c9738e407c /sway/commands | |
parent | 065887bb7b25c1cf7d39459c79387a24e600085f (diff) | |
download | sway-9b567fc37e83ed9f0cbb028fd801a2f2609c79dc.tar.xz |
clean up container_get_default_layout
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/layout.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index ebab2a48..4c49a627 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c @@ -28,8 +28,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) { if (strcasecmp(argv[0], "default") == 0) { container_set_layout(parent, parent->prev_layout); if (parent->layout == L_NONE) { - struct sway_container *output = container_parent(parent, C_OUTPUT); - container_set_layout(parent, container_get_default_layout(output)); + container_set_layout(parent, container_get_default_layout(parent)); } } else { if (parent->layout != L_TABBED && parent->layout != L_STACKED) { |