# server_client_check_pane_focus

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1613
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-server-client-c-server_client_check_pane_focus/

```c
static void server_client_check_pane_focus(struct window_pane *)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`server_client_loop`](/en/tmux/3.2a/reference/c-function-server_client_loop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1410)

## Calls

- [`notify_pane`](/en/tmux/3.2a/reference/c-function-notify_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1644)
- [`session_update_activity`](/en/tmux/3.2a/reference/c-function-session_update_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1654)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`session.attached`](/en/tmux/3.2a/reference/c-struct-session-attached/) (attribute)
- [`window_pane.base`](/en/tmux/3.2a/reference/c-struct-window_pane-base/) (attribute)
- [`CLIENT_FOCUSED`](/en/tmux/3.2a/reference/c-define-tmux-h-client_focused/) (constant)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`client.entry`](/en/tmux/3.2a/reference/c-struct-client-entry/) (attribute)
- [`window_pane.event`](/en/tmux/3.2a/reference/c-struct-window_pane-event/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`screen.mode`](/en/tmux/3.2a/reference/c-struct-screen-mode/) (attribute)
- [`MODE_FOCUSON`](/en/tmux/3.2a/reference/c-define-tmux-h-mode_focuson/) (constant)
- [`PANE_FOCUSED`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_focused/) (constant)
- [`PANE_FOCUSPUSH`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_focuspush/) (constant)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
