Introduce *focus_order functions

This commit is contained in:
Orestis Floros
2017-12-13 16:29:54 +02:00
parent 27e60bd9d0
commit dc2363a665
2 changed files with 72 additions and 0 deletions

View File

@ -228,6 +228,22 @@ void con_unmark(Con *con, const char *name);
*/
Con *con_for_window(Con *con, i3Window *window, Match **store_match);
/**
* Iterate over the container's focus stack and return an array with the
* containers inside it, ordered from higher focus order to lowest.
*
*/
Con **get_focus_order(Con *con);
/**
* Clear the container's focus stack and re-add it using the provided container
* array. The function doesn't check if the provided array contains the same
* containers with the previous focus stack but will not add floating containers
* in the new focus stack if container is not a workspace.
*
*/
void set_focus_order(Con *con, Con **focus_order);
/**
* Returns the number of children of this container.
*