# Libtmux.Operations.swap_panes

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1338
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-swap_panes/

```
val swap_panes : Pane.target -> Pane.target -> unit Command.t
```

Exchange pane positions without exchanging their identities or running processes. Both targets must belong to the same bound generation.

## Parameters

- `arg1` (`Pane.target`)
- `arg2` (`Pane.target`)
