# control_pane_offset

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

```c
struct window_pane_offset * control_pane_offset(struct client *c, struct window_pane *wp, int *off)
```

## Parameters

- `c` (`struct client *`)
- `wp` (`struct window_pane *`)
- `off` (`int *`)

## Called by

- [`server_client_check_pane_buffer`](/en/tmux/latest/reference/c-function-server-client-c-server_client_check_pane_buffer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1688)

## Calls

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

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL_NOOUTPUT`](/en/tmux/latest/reference/c-define-tmux-h-client_control_nooutput/) (constant)
- [`CONTROL_BUFFER_LOW`](/en/tmux/latest/reference/c-define-control-c-control_buffer_low/) (constant)
- [`CONTROL_PANE_OFF`](/en/tmux/latest/reference/c-define-control-c-control_pane_off/) (constant)
- [`CONTROL_PANE_PAUSED`](/en/tmux/latest/reference/c-define-control-c-control_pane_paused/) (constant)
- [`client.control_state`](/en/tmux/latest/reference/c-struct-client-control_state/) (attribute)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`control_pane.flags`](/en/tmux/latest/reference/c-struct-control_pane-flags/) (attribute)
- [`control_pane.offset`](/en/tmux/latest/reference/c-struct-control_pane-offset/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_pane_offset`](/en/tmux/latest/reference/c-struct-window_pane_offset/) (struct)
- [`control_state.write_event`](/en/tmux/latest/reference/c-struct-control_state-write_event/) (attribute)
