# window_has_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L479
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window_has_pane/

```c
int window_has_pane(struct window *w, struct window_pane *wp)
```

## Parameters

- `w` (`struct window *`)
- `wp` (`struct window_pane *`)

## Called by

- [`cmd_find_valid_state`](/en/tmux/latest/reference/c-function-cmd_find_valid_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L684)
- [`cmd_mouse_pane`](/en/tmux/latest/reference/c-function-cmd_mouse_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L830)
- [`window_tree_pull_item`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L169)

## Referenced declarations

- [`window_pane.entry`](/en/tmux/latest/reference/c-struct-window_pane-entry/) (attribute)
- [`window.panes`](/en/tmux/latest/reference/c-struct-window-panes/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
