mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
clean up container_get_default_layout
This commit is contained in:
parent
065887bb7b
commit
9b567fc37e
4 changed files with 15 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue