# window_pane_exited

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

```c
int window_pane_exited(struct window_pane *wp)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`cmd_paste_buffer_exec`](/en/tmux/3.7c/reference/c-function-cmd-paste-buffer-c-cmd_paste_buffer_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-paste-buffer.c#L68)
- [`cmd_pipe_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-pipe-pane-c-cmd_pipe_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-pipe-pane.c#L71)

## Referenced by

- [`window_pane_send_theme_update`](/en/tmux/3.7c/reference/c-function-window_pane_send_theme_update/) (function)

## Referenced declarations

- [`window_pane.fd`](/en/tmux/3.7c/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`PANE_EXITED`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_exited/) (constant)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
