# cmd_find_from_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L770
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd_find_from_window/

```c
int cmd_find_from_window(struct cmd_find_state *fs, struct window *w, int flags)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `w` (`struct window *`)
- `flags` (`int`)

## Called by

- [`cmd_find_from_pane`](/en/tmux/latest/reference/c-function-cmd_find_from_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L809)
- [`notify_window`](/en/tmux/latest/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L301)

## Calls

- [`cmd_find_best_session_with_window`](/en/tmux/latest/reference/c-function-cmd-find-c-cmd_find_best_session_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L775)
- [`cmd_find_best_winlink_with_window`](/en/tmux/latest/reference/c-function-cmd-find-c-cmd_find_best_winlink_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L779)
- [`cmd_find_clear_state`](/en/tmux/latest/reference/c-function-cmd_find_clear_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L772)
- [`cmd_find_log_state`](/en/tmux/latest/reference/c-function-cmd-find-c-cmd_find_log_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L785)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`winlink.flags`](/en/tmux/latest/reference/c-struct-winlink-flags/) (attribute)
- [`cmd_find_state.w`](/en/tmux/latest/reference/c-struct-cmd_find_state-w/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`cmd_find_state.wp`](/en/tmux/latest/reference/c-struct-cmd_find_state-wp/) (attribute)
