# window_tree_pull_item

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

```c
static void window_tree_pull_item(struct window_tree_itemdata *item, struct session **sp, struct winlink **wlp, struct window_pane **wp)
```

## Parameters

- `item` (`struct window_tree_itemdata *`)
- `sp` (`struct session **`)
- `wlp` (`struct winlink **`)
- `wp` (`struct window_pane **`)

## Called by

- [`window_tree_draw`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L803)
- [`window_tree_get_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L884)
- [`window_tree_get_target`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1007)
- [`window_tree_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1265)
- [`window_tree_kill_each`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_kill_each/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1102)
- [`window_tree_mouse`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1195)
- [`window_tree_search`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L832)

## Calls

- [`session_find_by_id`](/en/tmux/3.2a/reference/c-function-session_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L158)
- [`window_has_pane`](/en/tmux/3.2a/reference/c-function-window_has_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L178)
- [`window_pane_find_by_id`](/en/tmux/3.2a/reference/c-function-window_pane_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L177)
- [`winlink_find_by_index`](/en/tmux/3.2a/reference/c-function-winlink_find_by_index/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L167)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`window_tree_itemdata.pane`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata-pane/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`window_tree_itemdata.session`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata-session/) (attribute)
- [`window_tree_itemdata.type`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata-type/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`window_tree_itemdata`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata/) (struct)
- [`WINDOW_TREE_SESSION`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_session/) (constant)
- [`WINDOW_TREE_WINDOW`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_window/) (constant)
- [`window_tree_itemdata.winlink`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata-winlink/) (attribute)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`cmd_find_state.wp`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wp/) (attribute)
