# winlink_stack_remove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L255
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-winlink_stack_remove/

```c
void winlink_stack_remove(struct winlink_stack *stack, struct winlink *wl)
```

## Parameters

- `stack` (`struct winlink_stack *`)
- `wl` (`struct winlink *`)

## Called by

- [`server_link_window`](/en/tmux/3.7c/reference/c-function-server_link_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L278)
- [`session_destroy`](/en/tmux/3.7c/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L219)
- [`session_detach`](/en/tmux/3.7c/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L350)
- [`session_set_current`](/en/tmux/3.7c/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L485)
- [`spawn_window`](/en/tmux/3.7c/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L135)
- [`winlink_stack_push`](/en/tmux/3.7c/reference/c-function-winlink_stack_push/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L249)

## Referenced declarations

- [`winlink.flags`](/en/tmux/3.7c/reference/c-struct-winlink-flags/) (attribute)
- [`winlink.sentry`](/en/tmux/3.7c/reference/c-struct-winlink-sentry/) (attribute)
- [`winlink`](/en/tmux/3.7c/reference/c-struct-winlink/) (struct)
- [`winlink_stack`](/en/tmux/3.7c/reference/c-struct-winlink_stack/) (struct)
- [`WINLINK_VISITED`](/en/tmux/3.7c/reference/c-define-tmux-h-winlink_visited/) (constant)
