# window_tree_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L903
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_init/

```c
static struct screen * window_tree_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `fs` (`struct cmd_find_state *`)
- `args` (`struct args *`)

## Calls

- [`args_has`](/en/tmux/3.7c/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L914)
- [`mode_tree_build`](/en/tmux/3.7c/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L944)
- [`mode_tree_draw`](/en/tmux/3.7c/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L945)
- [`mode_tree_start`](/en/tmux/3.7c/reference/c-function-mode_tree_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L938)
- [`mode_tree_zoom`](/en/tmux/3.7c/reference/c-function-mode_tree_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L942)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L910)
- [`xstrdup`](/en/tmux/3.7c/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L925)

## Other function references

- [`args_count`](/en/tmux/3.7c/reference/c-function-args_count/) (function)
- [`args_get`](/en/tmux/3.7c/reference/c-function-args_get/) (function)
- [`args_string`](/en/tmux/3.7c/reference/c-function-args_string/) (function)
- [`window_tree_build`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_build/) (function)
- [`window_tree_draw`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_draw/) (function)
- [`window_tree_get_key`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_get_key/) (function)
- [`window_tree_help`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_help/) (function)
- [`window_tree_menu`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_menu/) (function)
- [`window_tree_search`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_search/) (function)
- [`window_tree_sort`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_sort/) (function)
- [`window_tree_swap`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_swap/) (function)

## Referenced by

- [`window_tree_mode`](/en/tmux/3.7c/reference/c-variable-window_tree_mode/) (attribute)

## Referenced declarations

- [`args`](/en/tmux/3.7c/reference/c-struct-args/) (struct)
- [`cmd_find_state`](/en/tmux/3.7c/reference/c-struct-cmd_find_state/) (struct)
- [`window_tree_modedata.command`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-command/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_tree_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-data/) (attribute)
- [`window_tree_modedata.format`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-format/) (attribute)
- [`window_tree_modedata.fs`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-fs/) (attribute)
- [`window_tree_modedata.key_format`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-key_format/) (attribute)
- [`PROMPT_ACCEPT`](/en/tmux/3.7c/reference/c-define-tmux-h-prompt_accept/) (constant)
- [`window_tree_modedata.prompt_flags`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-prompt_flags/) (attribute)
- [`window_tree_modedata.references`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-references/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`window_tree_modedata.squash_groups`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-squash_groups/) (attribute)
- [`window_tree_modedata.type`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-type/) (attribute)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
- [`WINDOW_TREE_DEFAULT_COMMAND`](/en/tmux/3.7c/reference/c-define-window-tree-c-window_tree_default_command/) (constant)
- [`WINDOW_TREE_DEFAULT_FORMAT`](/en/tmux/3.7c/reference/c-define-window-tree-c-window_tree_default_format/) (constant)
- [`WINDOW_TREE_DEFAULT_KEY_FORMAT`](/en/tmux/3.7c/reference/c-define-window-tree-c-window_tree_default_key_format/) (constant)
- [`window_tree_menu_items`](/en/tmux/3.7c/reference/c-variable-window-tree-c-window_tree_menu_items/) (attribute)
- [`WINDOW_TREE_NONE`](/en/tmux/3.7c/reference/c-enum-window_tree_type-window_tree_none/) (constant)
- [`WINDOW_TREE_PANE`](/en/tmux/3.7c/reference/c-enum-window_tree_type-window_tree_pane/) (constant)
- [`WINDOW_TREE_SESSION`](/en/tmux/3.7c/reference/c-enum-window_tree_type-window_tree_session/) (constant)
- [`WINDOW_TREE_WINDOW`](/en/tmux/3.7c/reference/c-enum-window_tree_type-window_tree_window/) (constant)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
- [`window_tree_modedata.wp`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-wp/) (attribute)
