Merge pull request #1961 from Airblader/bug-1957
Avoid freeze when moving container
This commit is contained in:
commit
2f9ed9c4c3
|
@ -1028,8 +1028,8 @@ bool con_move_to_mark(Con *con, const char *mark) {
|
||||||
target = TAILQ_FIRST(&(target->focus_head));
|
target = TAILQ_FIRST(&(target->focus_head));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (con == target) {
|
if (con == target || con == target->parent) {
|
||||||
DLOG("cannot move the container to itself, aborting.\n");
|
DLOG("cannot move the container to or inside itself, aborting.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue