mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Fix problems with floating windows
Makes any tabbed/stacked layout a container to separate from floating windows which may be attached to a workspace.
This commit is contained in:
parent
ec7ff769c7
commit
8d700fe008
6 changed files with 26 additions and 7 deletions
|
|
@ -1764,8 +1764,16 @@ static struct cmd_results *cmd_layout(int argc, char **argv) {
|
|||
// cmd_workspace_layout
|
||||
parent->layout = L_HORIZ;
|
||||
} else if (strcasecmp(argv[0], "tabbed") == 0) {
|
||||
if (parent->type != C_CONTAINER) {
|
||||
parent = new_container(parent, L_TABBED);
|
||||
}
|
||||
|
||||
parent->layout = L_TABBED;
|
||||
} else if (strcasecmp(argv[0], "stacking") == 0) {
|
||||
if (parent->type != C_CONTAINER) {
|
||||
parent = new_container(parent, L_STACKED);
|
||||
}
|
||||
|
||||
parent->layout = L_STACKED;
|
||||
} else if (strcasecmp(argv[0], "splith") == 0) {
|
||||
parent->layout = L_HORIZ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue