]> git.sur5r.net Git - i3/i3/blobdiff - src/floating.c
Add parameter to reparent windows instead of killing them when closing a container
[i3/i3] / src / floating.c
index cd387ba8a1b4bdf4a49d37e4794691deda56ac9f..2afe1b8218876bd9be0b12278805fe8c2f8246b9 100644 (file)
@@ -37,7 +37,7 @@ void toggle_floating_mode(Con *con, bool automatic) {
 
                 /* 2: kill parent container */
                 TAILQ_REMOVE(&(con->parent->parent->floating_head), con->parent, floating_windows);
-                tree_close(con->parent);
+                tree_close(con->parent, false);
 
                 /* 3: re-attach to previous parent */
                 con->parent = con->old_parent;