# window.Window.active_pane

- **Module:** window.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/window/navigation.rs#L78
- **Page:** https://libtmux.org/en/rs/latest/reference/window-window-active_pane/

```
window.Window.active_pane(self) -> Result<Option<Pane>, Error>
```

Return the window's active pane.

# Errors

Returns an error when the pane listing fails. A window always has an
active pane, so `Ok(None)` means the window disappeared between the
snapshot and this call.
