don’t remove floating container twice (it’s already removed in con_detach)

This commit is contained in:
Michael Stapelberg 2010-11-14 20:11:46 +01:00
parent 5d7344af8a
commit f0efb3737e
1 changed files with 1 additions and 4 deletions

View File

@ -181,10 +181,7 @@ void tree_close(Con *con, bool kill_window) {
if (con_is_floating(con)) { if (con_is_floating(con)) {
DLOG("Container was floating, killing floating container\n"); DLOG("Container was floating, killing floating container\n");
tree_close(parent, false, false);
TAILQ_REMOVE(&(parent->parent->floating_head), parent, floating_windows);
TAILQ_REMOVE(&(parent->parent->focus_head), parent, focused);
tree_close(parent, false);
next = NULL; next = NULL;
} }