# client-focus-out

Source: https://libtmux.org/en/tmux/3.7c/catalog/hooks/client-focus-out/

> Run when focus exits a client

hook tmux3.7c

Run when focus exits a client

* Scope

  session

* Set

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

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.7c/manual/show-hooks/) `client-focus-out`

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

Run when focus exits a client

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

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

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

* Defined in

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

* Fired from

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

* C source reference

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

* CLI Manual

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

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

Library documentation that names this hook.

* Rust

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

* Go

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