]> git.sur5r.net Git - i3/i3/blobdiff - include/tree.h
Bugfix: Don’t run into an endless loop when killing con with children (Thanks mseed)
[i3/i3] / include / tree.h
index 40d9a5417714a9c76ec1268b641dce8ca52d8919..8ffeca0d6afff41350606468d053ecc2ff9c4b73 100644 (file)
@@ -66,10 +66,12 @@ void tree_close_con();
 void tree_next(char way, orientation_t orientation);
 
 /**
- * Closes the given container including all children
+ * Closes the given container including all children.
+ * Returns true if the container was killed or false if just WM_DELETE was sent
+ * and the window is expected to kill itself.
  *
  */
-void tree_close(Con *con, bool kill_window, bool dont_kill_parent);
+bool tree_close(Con *con, bool kill_window, bool dont_kill_parent);
 
 /**
  * Loads tree from ~/.i3/_restart.json (used for in-place restarts).