# window-layout-changed

Source: https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/

> The window-layout-changed hook in tmux 3.2a.

hook tmux3.2a

* Scope

  window

* Set

  [`set-hook`](https://libtmux.org/en/tmux/3.2a/manual/set-hook/) `window-layout-changed command`

* Read

  [`show-hooks`](https://libtmux.org/en/tmux/3.2a/manual/show-hooks/) `window-layout-changed`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/#description)

The tmux 3.2a manual does not describe this hook.

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/hooks/window-layout-changed/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/#source)

* Defined in

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

* Fired from

  * [`cmd-join-pane.c:167`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-join-pane.c#L167) in `notify_window`
  * [`cmd-join-pane.c:168`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-join-pane.c#L168) in `notify_window`
  * [`cmd-select-layout.c:141`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-select-layout.c#L141) in `notify_window`
  * [`layout-custom.c:241`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-custom.c#L241) in `notify_window`
  * [`layout-set.c:168`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L168) in `notify_window`
  * [`layout-set.c:278`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L278) in `notify_window`
  * [`layout-set.c:376`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L376) in `notify_window`
  * [`layout-set.c:485`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L485) in `notify_window`
  * [`layout.c:604`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L604) in `notify_window`
  * [`layout.c:1049`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L1049) in `notify_window`
  * [`resize.c:63`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L63) in `notify_window`
  * [`spawn.c:472`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L472) in `notify_window`
  * [`window.c:605`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L605) in `notify_window`
  * [`window.c:628`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L628) in `notify_window`

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#HOOKS)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/hooks/window-layout-changed/#used-by)

Library documentation that names this hook.

* Go

  [`tmux.WindowHookValues.WindowLayoutChanged`](https://libtmux.org/en/go/latest/reference/tmux-windowhookvalues-windowlayoutchanged/)
