# window_copy_cmd_scroll_to_mouse

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1552
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_scroll_to_mouse/

```c
static enum window_copy_cmd_action window_copy_cmd_scroll_to_mouse(struct window_copy_cmd_state *cs)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`args_has`](/en/tmux/latest/reference/c-function-args_has/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1558)
- [`tty_window_offset`](/en/tmux/latest/reference/c-function-tty_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1561)
- [`window_copy_scroll`](/en/tmux/latest/reference/c-function-window_copy_scroll/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1562)

## Referenced declarations

- [`window_copy_cmd_state.c`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-c/) (attribute)
- [`window_copy_cmd_state.m`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-m/) (attribute)
- [`tty.mouse_slider_mpos`](/en/tmux/latest/reference/c-struct-tty-mouse_slider_mpos/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`window_copy_cmd_state.wargs`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wargs/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_NOTHING`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action-window_copy_cmd_nothing/) (constant)
- [`window_copy_cmd_state`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
- [`mouse_event.wp`](/en/tmux/latest/reference/c-struct-mouse_event-wp/) (attribute)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
- [`mouse_event.y`](/en/tmux/latest/reference/c-struct-mouse_event-y/) (attribute)
