mirror of
https://github.com/swaywm/sway.git
synced 2026-02-08 10:06:44 -05:00
Merge 9d2e7d378f into 845cdb190f
This commit is contained in:
commit
bd6f5635b9
1 changed files with 2 additions and 0 deletions
|
|
@ -842,6 +842,8 @@ struct sway_container *workspace_insert_tiling(struct sway_workspace *workspace,
|
|||
if (config->default_layout != L_NONE) {
|
||||
con = container_split(con, config->default_layout);
|
||||
}
|
||||
if (index < 0) index = 0;
|
||||
else if (index > workspace->tiling->length) index = workspace->tiling->length;
|
||||
workspace_insert_tiling_direct(workspace, con, index);
|
||||
return con;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue