# LibTmux.Server.linkWindowWith

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

```haskell
linkWindowWith
  :: MutationOptions
  -> Server
  -> WindowSlot
  -> WindowSlot
  -> IO ()
```

Signature types: [`MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/), [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

[`linkWindow`](/en/haskell/latest/reference/libtmux-server-v-linkwindow/) with an explicit deadline. Session groups can propagate a
 link to their members. Capture the graph again for current indices.

## Referenced declarations

- [`LibTmux.Server.MutationOptions`](/en/haskell/latest/reference/libtmux-server-t-mutationoptions/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)
- [`LibTmux.Creation.WindowSlot`](/en/haskell/latest/reference/libtmux-creation-t-windowslot/) (data type)

## tmux command

The tmux commands behind `linkWindowWith`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_link_window_entry`](/en/tmux/latest/reference/c-variable-cmd_link_window_entry/) (attribute)
- [`cmd_move_window_exec`](/en/tmux/latest/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function)
