X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Ftree.h;h=2799afee5fdf452b179dd8a597d3a539f40be929;hb=527ec2a69c7e6a8a08abb6b4a12ea74b40186013;hp=81fdbe6acab95374499b138a4d09f2b9eaf18e4d;hpb=726f2a1e5a6e6567b3c880277986b9d1d7bca931;p=i3%2Fi3 diff --git a/include/tree.h b/include/tree.h index 81fdbe6a..2799afee 100644 --- a/include/tree.h +++ b/include/tree.h @@ -7,8 +7,8 @@ * tree.c: Everything that primarily modifies the layout tree data structure. * */ -#ifndef _TREE_H -#define _TREE_H +#ifndef I3_TREE_H +#define I3_TREE_H extern Con *croot; /* TODO: i am not sure yet how much access to the focused container should @@ -39,23 +39,23 @@ Con *tree_open_con(Con *con, i3Window *window); void tree_split(Con *con, orientation_t orientation); /** - * Moves focus one level up. + * Moves focus one level up. Returns true if focus changed. * */ -void level_up(); +bool level_up(void); /** - * Moves focus one level down. + * Moves focus one level down. Returns true if focus changed. * */ -void level_down(); +bool level_down(void); /** * Renders the tree, that is rendering all outputs using render_con() and * pushing the changes to X11 using x_push_changes(). * */ -void tree_render(); +void tree_render(void); /** * Closes the current container using tree_close().