macro_rules! swap_window {
    (@cmd ($cmd:expr) -d, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -s $src_window:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr) -t $dst_window:expr, $($tail:tt)*) => { ... };
    (@cmd ($cmd:expr)) => { ... };
    () => { ... };
    (($cmd:expr), $($tail:tt)*) => { ... };
    ($($tail:tt)*) => { ... };
}
Expand description

This is similar to link-window, except the source and destination windows are swapped

§Manual

tmux ^0.8:

swap-window [-d] [-s src-window] [-t dst-window]
(alias: swapw)