# control_set_pane_off

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

```c
void control_set_pane_off(struct client *c, struct window_pane *wp)
```

## Parameters

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

## Called by

- [`cmd_refresh_client_update_offset`](/en/tmux/3.2a/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_update_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-refresh-client.c#L103)

## Calls

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

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CONTROL_PANE_OFF`](/en/tmux/3.2a/reference/c-define-control-c-control_pane_off/) (constant)
- [`control_pane.flags`](/en/tmux/3.2a/reference/c-struct-control_pane-flags/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
