# pane-focus-out

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-out/

> Run when the focus exits a pane, if the focus-events option is on.

hook tmux3.2a

Run when the focus exits a pane, if the focus-events option is on.

* Scope

  window, pane

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `pane-focus-out command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `pane-focus-out`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-out/#description)

Run when the focus exits a pane, if the [`focus-events`](https://libtmux.org/en/tmux/3.2a/catalog/options/focus-events/) option is on.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-out/#releases)

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

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-out/#source)

* Defined in

  [`options-table.c:1140`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options-table.c#L1140)

* Fired from

  * [`server-client.c:1644`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1644) in `notify_pane`

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#hooks-pane-focus-out)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/pane-focus-out/#used-by)

Library documentation that names this hook.

* Rust

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

* Go

  [`tmux.PaneHookValues.PaneFocusOut`](https://libtmux.org/en/go/latest/reference/tmux-panehookvalues-panefocusout/), [`tmux.WindowHookValues.PaneFocusOut`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-panefocusout/)
