diff options
author | Drew DeVault <[email protected]> | 2016-07-07 21:41:32 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-07-07 21:41:32 -0400 |
commit | 0374154749653b5f29b86e255af7b2346bddebe0 (patch) | |
tree | 20a270ed04829763c56c854f7b3978cf4b640e5d /sway/commands.c | |
parent | 378149b59c8d2a6d2b0bab7f2bb507dbac990734 (diff) | |
parent | ee67cd0ba1e950f5e21328580cc46b618be5fc01 (diff) |
Merge pull request #744 from thejan2009/tabbed-stacked-layout-fixes
Fix tabbed/stacked corner case #742
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c index 2248e1c7..871b3078 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1950,13 +1950,13 @@ static struct cmd_results *cmd_layout(int argc, char **argv) { } if (strcasecmp(argv[0], "tabbed") == 0) { - if (parent->type != C_CONTAINER) { + if (parent->type != C_CONTAINER && !swayc_is_empty_workspace(parent)){ parent = new_container(parent, L_TABBED); } parent->layout = L_TABBED; } else if (strcasecmp(argv[0], "stacking") == 0) { - if (parent->type != C_CONTAINER) { + if (parent->type != C_CONTAINER && !swayc_is_empty_workspace(parent)) { parent = new_container(parent, L_STACKED); } |