# cmd_find_current_client

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

```c
static struct client * cmd_find_current_client(struct cmdq_item *item, int quiet)
```

## Parameters

- `item` (`struct cmdq_item *`)
- `quiet` (`int`)

## Called by

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

## Calls

- [`cmd_find_best_client`](/en/tmux/3.2a/reference/c-function-cmd_find_best_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1260)
- [`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#L1259)
- [`cmdq_error`](/en/tmux/3.2a/reference/c-function-cmdq_error/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1267)
- [`cmdq_get_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1251)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L1268)

## Other function references

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

## Referenced declarations

- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`CMD_FIND_QUIET`](/en/tmux/3.2a/reference/c-define-tmux-h-cmd_find_quiet/) (constant)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`cmd_find_state.s`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-s/) (attribute)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`cmd_find_state.w`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-w/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-wp/) (attribute)
