# control_window_pane

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

```c
static struct window_pane * control_window_pane(struct client *c, u_int pane)
```

## Parameters

- `c` (`struct client *`)
- `pane` (`u_int`)

## Called by

- [`control_write_pending`](/en/tmux/latest/reference/c-function-control-c-control_write_pending/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L678)

## Calls

- [`winlink_find_by_window`](/en/tmux/latest/reference/c-function-winlink_find_by_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L290)

## Other function references

- [`window_pane_find_by_id`](/en/tmux/latest/reference/c-function-window_pane_find_by_id/) (function)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`session.windows`](/en/tmux/latest/reference/c-struct-session-windows/) (attribute)
