# client-focus-in

Source: https://libtmux.org/en/tmux/latest/catalog/hooks/client-focus-in/

> Run when focus enters a client

hook tmux3.7c

Run when focus enters a client

* Scope

  session

* Set

  [`set-hook`](https://libtmux.org/en/tmux/latest/manual/set-hook/) `client-focus-in command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/latest/manual/show-hooks/) `client-focus-in`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/hooks/client-focus-in/#description)

Run when focus enters a client

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/hooks/client-focus-in/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/client-focus-in/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/hooks/client-focus-in/#source)

* Defined in

  [`options-table.c:1687`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options-table.c#L1687)

* Fired from

  * [`tty-keys.c:1013`](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-keys.c#L1013) in `notify_client`

* C source reference

  [`options_table`](https://libtmux.org/en/tmux/latest/reference/c-variable-options_table/), [`notify_client`](https://libtmux.org/en/tmux/latest/reference/c-function-notify_client/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#hooks-client-focus-in)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/hooks/client-focus-in/#used-by)

Library documentation that names this hook.

* Rust

  [`options.generated.CLIENT_FOCUS_IN`](https://libtmux.org/en/rs/latest/reference/options-generated-client_focus_in/)

* Go

  [`tmux.ServerHookValues.ClientFocusIn`](https://libtmux.org/en/go/latest/reference/tmux-serverhookvalues-clientfocusin/), [`tmux.SessionHookValues.ClientFocusIn`](https://libtmux.org/en/go/latest/reference/tmux-sessionhookvalues-clientfocusin/)
