# libtmux.Client.attached_pane

- **Module:** libtmux.Client
- **Package:** libtmux
- **Language:** Python
- **Kind:** property
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/client.py#L170
- **Page:** https://libtmux.org/en/py/latest/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``, 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.
