# tmux.SwapWindowRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/window_pane_swap.go#L10
- **Page:** https://libtmux.org/reference/go/tmux-swapwindowrequest/

SwapWindowRequest configures swapping the receiver with one exact winlink on tmux 3.2a or later. Its zero value is invalid because Target must be a complete Window handle. The endpoints must be proven to share a daemon through connection state or the same nonempty SocketPath; matching socket names alone are insufficient. Validation completes before execution.

## Members

- `Target` (attribute) — Target is the exact other winlink to swap with the receiver.
- `Detach` (attribute) — Detach leaves the affected sessions' current-window selection unchanged.
