# window.navigation.Window.active_pane

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

```
window.navigation.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.
