# Server.rotate(_:upward:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Navigation.swift#L91
- **Page:** https://libtmux.org/reference/swift/server-rotate(_-upward-)/

```
Server.rotate(_:upward:)(window: Window, upward: Bool) -> ()
```

Shifts every pane in a window one position around the layout.

The layout itself is untouched: the panes move through its positions,
each taking the size and place of its neighbour. Ids do not change, so
panes you already hold stay valid — but their indices do, which is what
makes this different from ``swap(_:with:)-(Pane,Pane)``.

- Parameters:
  - window: the window whose panes move.
  - upward: each pane takes the next numerically lower position, which
    is tmux's own default. `false` sends them the other way.

## Raises

- `TmuxError`
