# control_set_pane_on

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

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

## Parameters

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

## Called by

- [`cmd_refresh_client_update_offset`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_update_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L154)

## 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#L343)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CONTROL_PANE_OFF`](/en/tmux/latest/reference/c-define-control-c-control_pane_off/) (constant)
- [`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.offset`](/en/tmux/latest/reference/c-struct-window_pane-offset/) (attribute)
- [`control_pane.queued`](/en/tmux/latest/reference/c-struct-control_pane-queued/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
