X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fmove.c;h=3ecc69e4c762c7c63e2e38ab6a9ceadaeb91edf0;hb=480f688b44f962fa57fd6d44dc2e204724416cdb;hp=70c8c7885521c52724eaa29c1ec3724ad535ed85;hpb=bfa76016de6f473f86adab0805407b625950e6a1;p=i3%2Fi3 diff --git a/src/move.c b/src/move.c index 70c8c788..3ecc69e4 100644 --- a/src/move.c +++ b/src/move.c @@ -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