# cmd_mouse_pane

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

```c
struct window_pane * cmd_mouse_pane(struct mouse_event *m, struct session **sp, struct winlink **wlp)
```

## Parameters

- `m` (`struct mouse_event *`)
- `sp` (`struct session **`)
- `wlp` (`struct winlink **`)

## Called by

- [`cmd_find_from_mouse`](/en/tmux/3.2a/reference/c-function-cmd_find_from_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L846)
- [`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#L998)
- [`cmd_send_keys_exec`](/en/tmux/3.2a/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-send-keys.c#L181)
- [`format_cb_mouse_line`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1136)
- [`format_cb_mouse_pane`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1560)
- [`format_cb_mouse_word`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_word/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1110)
- [`format_cb_mouse_x`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_x/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1612)
- [`format_cb_mouse_y`](/en/tmux/3.2a/reference/c-function-format-c-format_cb_mouse_y/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L1628)
- [`window_copy_drag_release`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_drag_release/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4989)
- [`window_copy_drag_update`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_drag_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4948)
- [`window_copy_move_mouse`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_move_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4866)
- [`window_copy_start_drag`](/en/tmux/3.2a/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4892)

## Calls

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

## Other function references

- [`cmd_mouse_window`](/en/tmux/3.2a/reference/c-function-cmd_mouse_window/) (function)
- [`window_pane_find_by_id`](/en/tmux/3.2a/reference/c-function-window_pane_find_by_id/) (function)

## Referenced by

- [`cmd_copy_mode_exec`](/en/tmux/3.2a/reference/c-function-cmd-copy-mode-c-cmd_copy_mode_exec/) (function)
- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`mouse_event`](/en/tmux/3.2a/reference/c-struct-mouse_event/) (struct)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`mouse_event.wp`](/en/tmux/3.2a/reference/c-struct-mouse_event-wp/) (attribute)
