]> git.sur5r.net Git - i3/i3/commitdiff
Implement correct removal of floating containers
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:16:20 +0000 (23:16 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:16:20 +0000 (23:16 +0200)
src/con.c

index efd0a82a82ee3b9769d2c3e8341f8daac573ff5c..411c8df6ae72cee9bdb2abc92bcc17df31e37aef 100644 (file)
--- 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);