Fix crash when moving container to marked workspace

Was a small typo.

This also has the (positive) side-effect of allowing to move all the
content of a marked workspace next to the target container, see added
tests.
This commit is contained in:
Orestis Floros
2018-04-07 21:43:29 +03:00
parent a92acadfc0
commit 626af81232
2 changed files with 45 additions and 1 deletions

View File

@ -1305,7 +1305,7 @@ bool con_move_to_mark(Con *con, const char *mark) {
return true;
}
if (con->type == CT_WORKSPACE) {
if (target->type == CT_WORKSPACE) {
DLOG("target container is a workspace, simply moving the container there.\n");
con_move_to_workspace(con, target, true, false, false);
return true;