# window_copy_scroll

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

```c
void window_copy_scroll(struct window_pane *wp, int sl_mpos, u_int my, u_int tty_oy, int scroll_exit)
```

## Parameters

- `wp` (`struct window_pane *`)
- `sl_mpos` (`int`)
- `my` (`u_int`)
- `tty_oy` (`u_int`)
- `scroll_exit` (`int`)

## Called by

- [`cmd_copy_mode_exec`](/en/tmux/latest/reference/c-function-cmd-copy-mode-c-cmd_copy_mode_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-copy-mode.c#L105)
- [`window_copy_cmd_scroll_to_mouse`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_scroll_to_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1562)

## Calls

- [`window_copy_scroll1`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L638)
- [`window_set_active_pane`](/en/tmux/latest/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L637)

## Referenced declarations

- [`window_pane.modes`](/en/tmux/latest/reference/c-struct-window_pane-modes/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
