|
|
@ -259,9 +259,6 @@ static void container_move_to_container(struct sway_container *container,
|
|
|
|
* In other words, rejigger it. */
|
|
|
|
* In other words, rejigger it. */
|
|
|
|
static void workspace_rejigger(struct sway_workspace *ws,
|
|
|
|
static void workspace_rejigger(struct sway_workspace *ws,
|
|
|
|
struct sway_container *child, enum movement_direction move_dir) {
|
|
|
|
struct sway_container *child, enum movement_direction move_dir) {
|
|
|
|
if (!sway_assert(child->parent == NULL, "Expected a root child")) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
container_detach(child);
|
|
|
|
container_detach(child);
|
|
|
|
workspace_wrap_children(ws);
|
|
|
|
workspace_wrap_children(ws);
|
|
|
|
|
|
|
|
|
|
|
@ -270,6 +267,7 @@ static void workspace_rejigger(struct sway_workspace *ws,
|
|
|
|
ws->layout =
|
|
|
|
ws->layout =
|
|
|
|
move_dir == MOVE_LEFT || move_dir == MOVE_RIGHT ? L_HORIZ : L_VERT;
|
|
|
|
move_dir == MOVE_LEFT || move_dir == MOVE_RIGHT ? L_HORIZ : L_VERT;
|
|
|
|
workspace_update_representation(ws);
|
|
|
|
workspace_update_representation(ws);
|
|
|
|
|
|
|
|
child->width = child->height = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void move_out_of_tabs_stacks(struct sway_container *container,
|
|
|
|
static void move_out_of_tabs_stacks(struct sway_container *container,
|
|
|
|