# winlink_stack_push

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L241
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-winlink_stack_push/

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

## Parameters

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

## Called by

- [`session_set_current`](/en/tmux/3.2a/reference/c-function-session_set_current/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L494)

## Calls

- [`winlink_stack_remove`](/en/tmux/3.2a/reference/c-function-winlink_stack_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L246)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`winlink.sentry`](/en/tmux/3.2a/reference/c-struct-winlink-sentry/) (attribute)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`winlink_stack`](/en/tmux/3.2a/reference/c-struct-winlink_stack/) (struct)
