aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/tree/layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 38c194c1..2f4ae667 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -519,7 +519,6 @@ void container_move(struct sway_container *container,
519 sibling = NULL; 519 sibling = NULL;
520 } else { 520 } else {
521 wlr_log(L_DEBUG, "Reparenting container (perpendicular)"); 521 wlr_log(L_DEBUG, "Reparenting container (perpendicular)");
522 container_remove_child(container);
523 struct sway_container *focus_inactive = seat_get_focus_inactive( 522 struct sway_container *focus_inactive = seat_get_focus_inactive(
524 config->handler_context.seat, sibling); 523 config->handler_context.seat, sibling);
525 if (focus_inactive) { 524 if (focus_inactive) {
@@ -532,9 +531,11 @@ void container_move(struct sway_container *container,
532 continue; 531 continue;
533 } else if (sibling->children->length) { 532 } else if (sibling->children->length) {
534 wlr_log(L_DEBUG, "No focus-inactive, adding arbitrarily"); 533 wlr_log(L_DEBUG, "No focus-inactive, adding arbitrarily");
534 container_remove_child(container);
535 container_add_sibling(sibling->children->items[0], container); 535 container_add_sibling(sibling->children->items[0], container);
536 } else { 536 } else {
537 wlr_log(L_DEBUG, "No kiddos, adding container alone"); 537 wlr_log(L_DEBUG, "No kiddos, adding container alone");
538 container_remove_child(container);
538 container_add_child(sibling, container); 539 container_add_child(sibling, container);
539 } 540 }
540 container->width = container->height = 0; 541 container->width = container->height = 0;