# libtmux.Client.attached_pane

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/client.py#L170
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-client-attached_pane/

```
libtmux.Client.attached_pane(self) -> Pane | None
```

Return the :class:`Pane` this client is currently viewing.

Re-reads the client from [`list-clients`](/en/tmux/latest/manual/list-clients/), looks up its attached
session's current window, and returns that window's
:attr:`~libtmux.Window.active_pane`. Returns ``None`` when no
live attached session or active pane can be resolved.

This follows the attached session's current window and active
pane. When a client has used [`select-pane -P`](/en/tmux/latest/manual/select-pane/) to set its own
active pane, this property returns the *session's* current
active pane, not the client's per-client focus.
