# window_tree_command_each

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

```c
static void window_tree_command_each(void *modedata, void *itemdata, struct client *c, key_code key)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `c` (`struct client *`)
- `key` (`key_code`)

## Calls

- [`mode_tree_run_command`](/en/tmux/3.7c/reference/c-function-mode_tree_run_command/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L1051)
- [`window_tree_get_target`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L1049)

## Referenced by

- [`window_tree_command_callback`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_command_callback/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`window_tree_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-data/) (attribute)
- [`window_tree_modedata.entered`](/en/tmux/3.7c/reference/c-struct-window_tree_modedata-entered/) (attribute)
- [`key_code`](/en/tmux/3.7c/reference/c-typedef-key_code/) (typealias)
