# focus-follows-mouse

Source: https://libtmux.org/en/tmux/latest/catalog/options/focus-follows-mouse/

> When enabled and mouse is on, moving the mouse into a pane selects it.

option tmux3.7c

When enabled and mouse is on, moving the mouse into a pane selects it.

* Scope

  session

* Type

  Flag (on or off)

* Default

  `off`

* Set

  [`set-option`](https://libtmux.org/en/tmux/latest/manual/set-option/) `focus-follows-mouse value`

* Read

  [`show-options`](https://libtmux.org/en/tmux/latest/manual/show-options/) `focus-follows-mouse`

## Description[#](https://libtmux.org/en/tmux/latest/catalog/options/focus-follows-mouse/#description)

When enabled and `mouse` is on, moving the mouse into a pane selects it.

## Releases[#](https://libtmux.org/en/tmux/latest/catalog/options/focus-follows-mouse/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/options/focus-follows-mouse/) : present
* tmux 3.2a : not present

## Source[#](https://libtmux.org/en/tmux/latest/catalog/options/focus-follows-mouse/#source)

* Defined in

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

* C source reference

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

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/latest/manual/full/#options-focus-follows-mouse)

## Used by[#](https://libtmux.org/en/tmux/latest/catalog/options/focus-follows-mouse/#used-by)

Library documentation that names this option.

* Rust

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

* Go

  [`tmux.GlobalSessionScope.SetFocusFollowsMouse`](https://libtmux.org/en/go/latest/reference/tmux-globalsessionscope-setfocusfollowsmouse/), [`tmux.Session.SetFocusFollowsMouse`](https://libtmux.org/en/go/latest/reference/tmux-session-setfocusfollowsmouse/), [`tmux.SessionOptionValues.FocusFollowsMouse`](https://libtmux.org/en/go/latest/reference/tmux-sessionoptionvalues-focusfollowsmouse/)
