# libtmux::Pane::join

- **Module:** libtmux::Pane
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L651
- **Page:** https://libtmux.org/reference/cxx/libtmux-pane-join/

```
libtmux::Pane::join(target: const Window &) -> expected< void, CommandFailure >
```

Move this pane into another window, splitting it.

The other half of `break_out`: that takes the tree apart, this puts it back.

The pane keeps its id, so a value held across the move still names it. The window it came from disappears if it held nothing else, which is why the target is named rather than inferred from where this pane is.
