diff options
author | 2018-04-03 13:23:34 -0400 | |
---|---|---|
committer | 2018-04-03 13:23:34 -0400 | |
commit | 9b567fc37e83ed9f0cbb028fd801a2f2609c79dc (patch) | |
tree | a1ebdea49233f10c016664159bb9e8c9738e407c /sway/commands | |
parent | move container_set_layout to layout.h (diff) | |
download | sway-9b567fc37e83ed9f0cbb028fd801a2f2609c79dc.tar.gz sway-9b567fc37e83ed9f0cbb028fd801a2f2609c79dc.tar.zst sway-9b567fc37e83ed9f0cbb028fd801a2f2609c79dc.zip |
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) { | |||
28 | if (strcasecmp(argv[0], "default") == 0) { | 28 | if (strcasecmp(argv[0], "default") == 0) { |
29 | container_set_layout(parent, parent->prev_layout); | 29 | container_set_layout(parent, parent->prev_layout); |
30 | if (parent->layout == L_NONE) { | 30 | if (parent->layout == L_NONE) { |
31 | struct sway_container *output = container_parent(parent, C_OUTPUT); | 31 | container_set_layout(parent, container_get_default_layout(parent)); |
32 | container_set_layout(parent, container_get_default_layout(output)); | ||
33 | } | 32 | } |
34 | } else { | 33 | } else { |
35 | if (parent->layout != L_TABBED && parent->layout != L_STACKED) { | 34 | if (parent->layout != L_TABBED && parent->layout != L_STACKED) { |