# libtmux.Window.window_active

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** attribute
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/neo.py#L454
- **Inherited from:** libtmux.neo.Obj
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-window-window_active/

```py
libtmux.Window.window_active: str | None = None
```

## In other ports

### Whether this was the active window when captured

- Ruby: [`LibTmux::WindowLinkSnapshot#active?`](/en/ruby/latest/reference/libtmux-windowlinksnapshot-active-inob/) (method)
- Rust: [`window.Window.is_active`](/en/rs/latest/reference/window-window-is_active/) (method)
- Go: [`tmux.Window.Active`](/en/go/latest/reference/tmux-window-active/) (method)
- Java: [`io.github.libtmux.Window.Window.active`](/en/java/latest/reference/io-github-libtmux-window-window-active/) (method)
- C++: [`libtmux::Window::active`](/en/cxx/latest/reference/libtmux-window-active-ggh4/) (method)
