# LibTmux.Server.resizeWindowWith

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L886
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-resizewindowwith/

```haskell
resizeWindowWith
  :: MutationOptions
  -> Server
  -> WindowRef
  -> Resize
  -> IO ()
```

Signature types: [`MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/), [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`WindowRef`](/en/haskell/latest/reference/libtmux-snapshot-t-windowref/), [`Resize`](/en/haskell/latest/reference/libtmux-value-t-resize/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

[`resizeWindow`](/en/haskell/latest/reference/libtmux-server-v-resizewindow/) with one deadline and generation checks before dispatch.
 All supplied dimensions must fit 1 through 10000 cells. Validation precedes
 any native effects or manual-size option changes. Missing targets raise
 [`MutationRejected`](/en/haskell/latest/reference/libtmux-server-v-mutationrejected/); a following hook error can retain an applied resize.
 Cancellation keeps its exception class and correlated `MutationRecovery`.

## Referenced declarations

- [`LibTmux.Server.MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/) (data type)
- [`LibTmux.Value.Resize`](/en/haskell/latest/reference/libtmux-value-t-resize/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)
- [`LibTmux.Snapshot.WindowRef`](/en/haskell/latest/reference/libtmux-snapshot-t-windowref/) (data type)

## tmux command

The tmux commands behind `resizeWindowWith`.

- [`resize-window`](/en/tmux/latest/manual/resize-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_resize_window_entry`](/en/tmux/latest/reference/c-variable-cmd_resize_window_entry/) (attribute)
- [`cmd_resize_window_exec`](/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function)

## Guides

Pages that discuss `resizeWindowWith`.

- [Resize panes and windows](/en/haskell/latest/guides/resizing/)
