# control_check_subs_window

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

```c
static void control_check_subs_window(struct client *c, struct control_sub *csub)
```

## Parameters

- `c` (`struct client *`)
- `csub` (`struct control_sub *`)

## Called by

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

## Calls

- [`control_write`](/en/tmux/latest/reference/c-function-control_write/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L998)
- [`format_create_defaults`](/en/tmux/latest/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L979)
- [`format_expand`](/en/tmux/latest/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L980)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L981)
- [`window_find_by_id`](/en/tmux/latest/reference/c-function-window_find_by_id/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L971)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L988)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`control_sub`](/en/tmux/latest/reference/c-struct-control_sub/) (struct)
- [`control_sub.format`](/en/tmux/latest/reference/c-struct-control_sub-format/) (attribute)
- [`control_sub.id`](/en/tmux/latest/reference/c-struct-control_sub-id/) (attribute)
- [`session.id`](/en/tmux/latest/reference/c-struct-session-id/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`control_sub_window.idx`](/en/tmux/latest/reference/c-struct-control_sub_window-idx/) (attribute)
- [`winlink.idx`](/en/tmux/latest/reference/c-struct-winlink-idx/) (attribute)
- [`control_sub_window.last`](/en/tmux/latest/reference/c-struct-control_sub_window-last/) (attribute)
- [`control_sub.name`](/en/tmux/latest/reference/c-struct-control_sub-name/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`winlink.session`](/en/tmux/latest/reference/c-struct-winlink-session/) (attribute)
- [`control_sub_window.window`](/en/tmux/latest/reference/c-struct-control_sub_window-window/) (attribute)
- [`control_sub.windows`](/en/tmux/latest/reference/c-struct-control_sub-windows/) (attribute)
- [`window.winlinks`](/en/tmux/latest/reference/c-struct-window-winlinks/) (attribute)
