# cmd_find_get_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L312
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_window/

```c
static int cmd_find_get_window(struct cmd_find_state *, const char *, int)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `window` (`const char *`)
- `only` (`int`)

## Called by

- [`cmd_find_target`](/en/tmux/3.2a/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1176)

## Calls

- [`cmd_find_best_session_with_window`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_best_session_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L321)
- [`cmd_find_get_window_with_session`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_window_with_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L328)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L314)
- [`window_find_by_id_str`](/en/tmux/3.2a/reference/c-function-window_find_by_id_str/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L318)

## Other function references

- [`cmd_find_get_session`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_session/) (function)

## Referenced by

- [`cmd_find_get_pane`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_get_pane/) (function)

## Referenced declarations

- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`CMD_FIND_WINDOW_INDEX`](/en/tmux/3.2a/reference/c-define-tmux-h-cmd_find_window_index/) (constant)
- [`cmd_find_state.current`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-current/) (attribute)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`cmd_find_state.flags`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-flags/) (attribute)
- [`cmd_find_state.idx`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-idx/) (attribute)
- [`winlink.idx`](/en/tmux/3.2a/reference/c-struct-winlink-idx/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-s/) (attribute)
- [`cmd_find_state.w`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-w/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`cmd_find_state.wl`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wl/) (attribute)
