summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2022-02-15 14:46:12 -0700
committerFurkan Sahin <furkan-dev@proton.me>2022-02-15 14:46:12 -0700
commit22935c30b36d3ea521f86ebed6840d82b4401c36 (patch)
tree937042cb23823cc05369149659d0ac8245d5b6b0
parent2b917ed78c7a2cecc0b845f9ad243148969ec9b4 (diff)
Removed destination-is-ancestor check from container_move_to_container to match i3 behaviour
(cherry picked from commit b6da218974d2e0508e7816f707fe0b1f1c97f0d6)
-rw-r--r--sway/commands/move.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/commands/move.c b/sway/commands/move.c
index ad106c64..8891514c 100644
--- a/sway/commands/move.c
+++ b/sway/commands/move.c
@@ -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;
}