Implement correct removal of floating containers

This commit is contained in:
Michael Stapelberg 2010-05-31 23:16:20 +02:00
parent b14fa457e7
commit 935b8e05ff
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,8 @@ void con_attach(Con *con, Con *parent) {
void con_detach(Con *con) { void con_detach(Con *con) {
if (con->type == CT_FLOATING_CON) { if (con->type == CT_FLOATING_CON) {
/* TODO: remove */ TAILQ_REMOVE(&(con->parent->floating_head), con, floating_windows);
TAILQ_REMOVE(&(con->parent->focus_head), con, focused);
} else { } else {
TAILQ_REMOVE(&(con->parent->nodes_head), con, nodes); TAILQ_REMOVE(&(con->parent->nodes_head), con, nodes);
TAILQ_REMOVE(&(con->parent->focus_head), con, focused); TAILQ_REMOVE(&(con->parent->focus_head), con, focused);