mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
commit
0dc1d87490
1 changed files with 7 additions and 0 deletions
|
@ -235,6 +235,13 @@ static bool _do_split(struct sway_config *config, int argc, char **argv, int lay
|
|||
return false;
|
||||
}
|
||||
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;
|
||||
sway_log(L_DEBUG, "Splitting %p vertically with %p", parent, focused);
|
||||
int index = remove_container_from_parent(parent, focused);
|
||||
|
|
Loading…
Reference in a new issue