]> git.sur5r.net Git - i3/i3/blobdiff - src/con.c
Merge pull request #1961 from Airblader/bug-1957
[i3/i3] / src / con.c
index fe2d49be7be6f67cb3060d3dd6cbf86d132a189b..d1148301f5d5bb9d37e8f69a00112493b67a718c 100644 (file)
--- a/src/con.c
+++ b/src/con.c
@@ -1028,8 +1028,8 @@ bool con_move_to_mark(Con *con, const char *mark) {
         target = TAILQ_FIRST(&(target->focus_head));
     }
 
-    if (con == target) {
-        DLOG("cannot move the container to itself, aborting.\n");
+    if (con == target || con == target->parent) {
+        DLOG("cannot move the container to or inside itself, aborting.\n");
         return false;
     }