commit 9753e52d6b5e0d83e3473cfa9908ae3a0a459e73
parent 0b7fb6943ed7cc0be7f249c663966acf6c833299
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Sun, 23 Sep 2018 14:32:26 +1000
Flatten container in workspace_rejigger
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sway/commands/move.c b/sway/commands/move.c
@@ -266,10 +266,11 @@ static void workspace_rejigger(struct sway_workspace *ws,
return;
}
container_detach(child);
- workspace_wrap_children(ws);
+ struct sway_container *new_parent = workspace_wrap_children(ws);
int index = move_dir == MOVE_LEFT || move_dir == MOVE_UP ? 0 : 1;
workspace_insert_tiling(ws, child, index);
+ container_flatten(new_parent);
ws->layout =
move_dir == MOVE_LEFT || move_dir == MOVE_RIGHT ? L_HORIZ : L_VERT;
workspace_update_representation(ws);