# window_get_bg_client

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1932
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window_get_bg_client/

```c
int window_get_bg_client(struct window_pane *wp)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`window_pane_get_bg`](/en/tmux/3.7c/reference/c-function-window_pane_get_bg/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1923)

## Other function references

- [`session_has`](/en/tmux/3.7c/reference/c-function-session_has/) (function)

## Referenced declarations

- [`tty.bg`](/en/tmux/3.7c/reference/c-struct-tty-bg/) (attribute)
- [`CLIENT_UNATTACHEDFLAGS`](/en/tmux/3.7c/reference/c-define-tmux-h-client_unattachedflags/) (constant)
- [`client.entry`](/en/tmux/3.7c/reference/c-struct-client-entry/) (attribute)
- [`client.flags`](/en/tmux/3.7c/reference/c-struct-client-flags/) (attribute)
- [`client.session`](/en/tmux/3.7c/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
