]> git.sur5r.net Git - i3/i3/blobdiff - include/tree.h
Bugfix: Correctly revert focus to other floating windows when closing a floating...
[i3/i3] / include / tree.h
index b9bf7f54ae0ce9baeee18803a69bd859f0becb36..b483434fcdaad90891cbdf09d8fd5a4f8f34ade7 100644 (file)
@@ -70,8 +70,15 @@ void tree_next(char way, orientation_t orientation);
  * Returns true if the container was killed or false if just WM_DELETE was sent
  * and the window is expected to kill itself.
  *
+ * The dont_kill_parent flag is specified when the function calls itself
+ * recursively while deleting a containers children.
+ *
+ * The force_set_focus flag is specified in the case of killing a floating
+ * window: tree_close() will be invoked for the CT_FLOATINGCON (the parent
+ * container) and focus should be set there.
+ *
  */
-bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent);
+bool tree_close(Con *con, kill_window_t kill_window, bool dont_kill_parent, bool force_set_focus);
 
 /**
  * Loads tree from ~/.i3/_restart.json (used for in-place restarts).