# cmd_find_from_mouse

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

```c
int cmd_find_from_mouse(struct cmd_find_state *fs, struct mouse_event *m, int flags)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `m` (`struct mouse_event *`)
- `flags` (`int`)

## Calls

- [`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#L841)
- [`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#L853)
- [`cmd_mouse_pane`](/en/tmux/3.7c/reference/c-function-cmd_mouse_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L846)

## Referenced by

- [`server_client_key_callback`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_key_callback/) (function)

## Referenced declarations

- [`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)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`cmd_find_state.s`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-s/) (attribute)
- [`mouse_event.valid`](/en/tmux/3.7c/reference/c-struct-mouse_event-valid/) (attribute)
- [`cmd_find_state.w`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-w/) (attribute)
- [`winlink.window`](/en/tmux/3.7c/reference/c-struct-winlink-window/) (attribute)
- [`cmd_find_state.wl`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wl/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wp/) (attribute)
