X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Ftree.h;h=c64c173d40c2584f4d2507fc95168ae38dd4ca60;hb=988cc3ccaf59a0c25d9df47337bb9bd8826f6b31;hp=2799afee5fdf452b179dd8a597d3a539f40be929;hpb=0aa306890b66047aacb4863df0cfdfd6f46361e6;p=i3%2Fi3 diff --git a/include/tree.h b/include/tree.h index 2799afee..c64c173d 100644 --- a/include/tree.h +++ b/include/tree.h @@ -2,13 +2,12 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * tree.c: Everything that primarily modifies the layout tree data structure. * */ -#ifndef I3_TREE_H -#define I3_TREE_H +#pragma once extern Con *croot; /* TODO: i am not sure yet how much access to the focused container should @@ -57,12 +56,6 @@ bool level_down(void); */ void tree_render(void); -/** - * Closes the current container using tree_close(). - * - */ -void tree_close_con(kill_window_t kill_window); - /** * Changes focus in the given way (next/previous) and given orientation * (horizontal/vertical). @@ -79,11 +72,11 @@ void tree_next(char way, orientation_t orientation); * 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 + * window: tree_close_internal() 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 force_set_focus); +bool tree_close_internal(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). @@ -105,5 +98,3 @@ bool tree_restore(const char *path, xcb_get_geometry_reply_t *geometry); * */ void tree_flatten(Con *child); - -#endif