# cmd_mouse_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L817
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-cmd_find_from_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L846)
- [`cmd_find_target`](/en/tmux/3.7c/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L1013)
- [`cmd_resize_pane_mouse_update`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L158)
- [`cmd_resize_pane_mouse_update_floating`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L187)
- [`cmd_send_keys_exec`](/en/tmux/3.7c/reference/c-function-cmd-send-keys-c-cmd_send_keys_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-send-keys.c#L205)
- [`format_cb_mouse_hyperlink`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_hyperlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1264)
- [`format_cb_mouse_line`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1289)
- [`format_cb_mouse_pane`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1909)
- [`format_cb_mouse_word`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1239)
- [`format_cb_mouse_x`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_x/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1962)
- [`format_cb_mouse_y`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_y/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1983)
- [`window_copy_drag_release`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_drag_release/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6556)
- [`window_copy_drag_update`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_drag_update/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6514)
- [`window_copy_move_mouse`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_move_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6429)
- [`window_copy_start_drag`](/en/tmux/3.7c/reference/c-function-window_copy_start_drag/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6457)

## Calls

- [`window_has_pane`](/en/tmux/3.7c/reference/c-function-window_has_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd.c#L830)

## Other function references

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

## Referenced by

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

## Referenced declarations

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