# window_client_init

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L288
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-client-c-window_client_init/

```c
static struct screen * window_client_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

- [`mode_tree_build`](/en/tmux/3.2a/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L317)
- [`mode_tree_draw`](/en/tmux/3.2a/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L318)
- [`mode_tree_start`](/en/tmux/3.2a/reference/c-function-mode_tree_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L311)
- [`mode_tree_zoom`](/en/tmux/3.2a/reference/c-function-mode_tree_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L315)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L295)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L301)

## Other function references

- [`args_get`](/en/tmux/3.2a/reference/c-function-args_get/) (function)
- [`args_has`](/en/tmux/3.2a/reference/c-function-args_has/) (function)
- [`window_client_build`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_build/) (function)
- [`window_client_draw`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_draw/) (function)
- [`window_client_get_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_get_key/) (function)
- [`window_client_menu`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_menu/) (function)

## Referenced by

- [`window_client_mode`](/en/tmux/3.2a/reference/c-variable-window_client_mode/) (attribute)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`args.argc`](/en/tmux/3.2a/reference/c-struct-args-argc/) (attribute)
- [`args`](/en/tmux/3.2a/reference/c-struct-args/) (struct)
- [`args.argv`](/en/tmux/3.2a/reference/c-struct-args-argv/) (attribute)
- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`window_client_modedata.command`](/en/tmux/3.2a/reference/c-struct-window_client_modedata-command/) (attribute)
- [`window_client_modedata.data`](/en/tmux/3.2a/reference/c-struct-window_client_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_client_modedata.format`](/en/tmux/3.2a/reference/c-struct-window_client_modedata-format/) (attribute)
- [`window_client_modedata.key_format`](/en/tmux/3.2a/reference/c-struct-window_client_modedata-key_format/) (attribute)
- [`nitems`](/en/tmux/3.2a/reference/c-define-tmux-h-nitems/) (constant)
- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`WINDOW_CLIENT_DEFAULT_COMMAND`](/en/tmux/3.2a/reference/c-define-window-client-c-window_client_default_command/) (constant)
- [`WINDOW_CLIENT_DEFAULT_FORMAT`](/en/tmux/3.2a/reference/c-define-window-client-c-window_client_default_format/) (constant)
- [`WINDOW_CLIENT_DEFAULT_KEY_FORMAT`](/en/tmux/3.2a/reference/c-define-window-client-c-window_client_default_key_format/) (constant)
- [`window_client_menu_items`](/en/tmux/3.2a/reference/c-variable-window-client-c-window_client_menu_items/) (attribute)
- [`window_client_sort_list`](/en/tmux/3.2a/reference/c-variable-window-client-c-window_client_sort_list/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
- [`window_client_modedata.wp`](/en/tmux/3.2a/reference/c-struct-window_client_modedata-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
