# aggressive-resize

Source: https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/

> Aggressively resize the chosen window.

option tmux3.7c

Aggressively resize the chosen window.

* Scope

  window

* Type

  Flag (on or off)

* Default

  `off`

* Set

  [`set-option`](https://libtmux.org/en/tmux/3.7c/manual/set-option/) `-w aggressive-resize value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/3.7c/manual/show-options/) `-w aggressive-resize`

## Description[#](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/#description)

Aggressively resize the chosen window. This means that `tmux` will resize the window to the size of the smallest or largest session (see the [`window-size`](https://libtmux.org/en/tmux/3.7c/catalog/options/window-size/) option) for which it is the current window, rather than the session to which it is attached. The window may resize when the current window is changed on another session; this option is good for full-screen programs which support `SIGWINCH` and poor for interactive programs such as shells.

## Releases[#](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/options/aggressive-resize/) : present

## Source[#](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.7c/manual/full/#options-aggressive-resize)

## Used by[#](https://libtmux.org/en/tmux/3.7c/catalog/options/aggressive-resize/#used-by)

Library documentation that names this option.

* Python

  [`libtmux.hooks.HooksMixin.set_hook`](https://libtmux.org/en/py/latest/reference/libtmux-hooks-hooksmixin-set_hook/), [`libtmux.options.OptionsMixin.set_option`](https://libtmux.org/en/py/latest/reference/libtmux-options-optionsmixin-set_option/), [`libtmux.options.OptionsMixin.unset_option`](https://libtmux.org/en/py/latest/reference/libtmux-options-optionsmixin-unset_option/), [`libtmux.Pane.set_hook`](https://libtmux.org/en/py/latest/reference/libtmux-pane-set_hook/), [`libtmux.Pane.set_option`](https://libtmux.org/en/py/latest/reference/libtmux-pane-set_option/), [`libtmux.Pane.unset_option`](https://libtmux.org/en/py/latest/reference/libtmux-pane-unset_option/) and 9 more

* Rust

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

* Go

  [`tmux.GlobalWindowScope.SetAggressiveResize`](https://libtmux.org/en/go/latest/reference/tmux-globalwindowscope-setaggressiveresize/), [`tmux.Window.SetAggressiveResize`](https://libtmux.org/en/go/latest/reference/tmux-window-setaggressiveresize/), [`tmux.WindowOptionValues.AggressiveResize`](https://libtmux.org/en/go/latest/reference/tmux-windowoptionvalues-aggressiveresize/)
