Removed destination-is-ancestor check from container_move_to_container to match i3 behaviour

(cherry picked from commit b6da218974)
This commit is contained in:
Olivia Taliesin 2022-02-15 14:46:12 -07:00 committed by Simon Ser
parent 0299e0412a
commit 952c428482

View file

@ -240,7 +240,6 @@ static void container_move_to_workspace(struct sway_container *container,
static void container_move_to_container(struct sway_container *container,
struct sway_container *destination) {
if (container == destination
|| container_has_ancestor(container, destination)
|| container_has_ancestor(destination, container)) {
return;
}