# window.Window.swapWith

- **Module:** window.Window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L435
- **Page:** https://libtmux.org/reference/ts/window-window-swapwith/

```
window.Window.swapWith(other: : Window) -> Promise<void>
```

Exchange positions with another window.

## Example

```ts
await window.swapWith(other);
```
