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

This commit is contained in:
Olivia Taliesin 2022-02-15 14:46:12 -07:00
parent f707f583e1
commit 471099d82e
No known key found for this signature in database
GPG key ID: A8F45F29DFFB021B

View file

@ -232,7 +232,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;
}