mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
change workspace layout when trying to split it
This commit is contained in:
parent
57c28f96fd
commit
e3edab8a4c
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ static bool _do_split(struct sway_config *config, int argc, char **argv, int lay
|
|||
swayc_t *focused = get_focused_container(&root_container);
|
||||
if (focused->type == C_WORKSPACE) {
|
||||
sway_log(L_DEBUG, "Dont split workspaces");
|
||||
if(focused->children->length == 0) {
|
||||
focused->layout = layout;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
swayc_t *parent = focused->parent;
|
||||
|
|
Loading…
Reference in a new issue