# winlink_find_by_window

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

```c
struct winlink * winlink_find_by_window(struct winlinks *wwl, struct window *w)
```

## Parameters

- `wwl` (`struct winlinks *`)
- `w` (`struct window *`)

## Called by

- [`cmd_mouse_window`](/en/tmux/3.2a/reference/c-function-cmd_mouse_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd.c#L749)
- [`control_notify_window_layout_changed`](/en/tmux/3.2a/reference/c-function-control_notify_window_layout_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control-notify.c#L70)
- [`control_window_pane`](/en/tmux/3.2a/reference/c-function-control-c-control_window_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L288)
- [`control_write_output`](/en/tmux/3.2a/reference/c-function-control_write_output/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/control.c#L475)
- [`session_renumber_windows`](/en/tmux/3.2a/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L726)

## Referenced by

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

## Referenced declarations

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