# tmux.SwapWindowRequest

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/window_pane_swap.go#L10
- **Page:** https://libtmux.org/en/go/latest/reference/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.
