]> git.sur5r.net Git - i3/i3/blobdiff - src/move.c
Fix erratic behavior with single container child jumping outputs
[i3/i3] / src / move.c
index 70c8c7885521c52724eaa29c1ec3724ad535ed85..3ecc69e4c762c7c63e2e38ab6a9ceadaeb91edf0 100644 (file)
@@ -248,7 +248,8 @@ void tree_move(Con *con, int direction) {
                         ? AFTER
                         : BEFORE);
         insert_con_into(con, target, position);
-    } else if (con->parent->parent->type == CT_WORKSPACE &&
+    } else if (!next &&
+               con->parent->parent->type == CT_WORKSPACE &&
                con->parent->layout != L_DEFAULT &&
                con_num_children(con->parent) == 1) {
         /* Con is the lone child of a non-default layout container at the edge