# cmd_find_from_session_window

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

```c
int cmd_find_from_session_window(struct cmd_find_state *fs, struct session *s, struct window *w, int flags)
```

## Parameters

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

## Called by

- [`notify_session_window`](/en/tmux/3.7c/reference/c-function-notify_session_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/notify.c#L292)

## Calls

- [`cmd_find_best_winlink_with_window`](/en/tmux/3.7c/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#L758)
- [`cmd_find_clear_state`](/en/tmux/3.7c/reference/c-function-cmd_find_clear_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L754)
- [`cmd_find_log_state`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_log_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L764)

## Referenced declarations

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