From: Michael Stapelberg Date: Mon, 31 May 2010 21:16:20 +0000 (+0200) Subject: Implement correct removal of floating containers X-Git-Tag: tree-pr1~206 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=935b8e05ffa4964d80c6bf41b326b87138b32e9f;p=i3%2Fi3 Implement correct removal of floating containers --- diff --git a/src/con.c b/src/con.c index efd0a82a..411c8df6 100644 --- a/src/con.c +++ b/src/con.c @@ -67,7 +67,8 @@ void con_attach(Con *con, Con *parent) { void con_detach(Con *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 { TAILQ_REMOVE(&(con->parent->nodes_head), con, nodes); TAILQ_REMOVE(&(con->parent->focus_head), con, focused);