# window_pane_set_event

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

```c
void window_pane_set_event(struct window_pane *wp)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`spawn_pane`](/en/tmux/3.2a/reference/c-function-spawn_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L459)

## Calls

- [`input_init`](/en/tmux/3.2a/reference/c-function-input_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L981)
- [`setblocking`](/en/tmux/3.2a/reference/c-function-setblocking/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L977)

## Other function references

- [`window_pane_error_callback`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_error_callback/) (function)
- [`window_pane_read_callback`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_read_callback/) (function)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`window_pane.event`](/en/tmux/3.2a/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.fd`](/en/tmux/3.2a/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.ictx`](/en/tmux/3.2a/reference/c-struct-window_pane-ictx/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
