cmd_move: update container representation in sibling swaps

This commit is contained in:
Ronan Pigott 2021-01-01 14:58:47 -07:00 committed by Tudor Brindus
parent 9ef5cc03f1
commit d1bf3b8a86

View file

@ -120,6 +120,7 @@ static void container_move_to_container_from_direction(
int container_index = list_find(siblings, container); int container_index = list_find(siblings, container);
int destination_index = list_find(siblings, destination); int destination_index = list_find(siblings, destination);
list_swap(siblings, container_index, destination_index); list_swap(siblings, container_index, destination_index);
container_update_representation(container);
} else { } else {
sway_log(SWAY_DEBUG, "Promoting to sibling of cousin"); sway_log(SWAY_DEBUG, "Promoting to sibling of cousin");
int offset = int offset =