# libtmux.Client.attached_pane

- **Module:** libtmux.Client
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/client.py#L170
- **Page:** https://libtmux.org/reference/py/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``, 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`` to set its own
active pane, this property returns the *session's* current
active pane, not the client's per-client focus.
