# window_copy_start_drag

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

```c
void window_copy_start_drag(struct client *c, struct mouse_event *m)
```

## Parameters

- `c` (`struct client *`)
- `m` (`struct mouse_event *`)

## Called by

- [`cmd_copy_mode_exec`](/en/tmux/3.7c/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#L96)
- [`window_copy_cmd_begin_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_begin_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1181)

## Calls

- [`cmd_mouse_at`](/en/tmux/3.7c/reference/c-function-cmd_mouse_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6466)
- [`cmd_mouse_pane`](/en/tmux/3.7c/reference/c-function-cmd_mouse_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6457)
- [`window_copy_cursor_previous_word_pos`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_previous_word_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6481)
- [`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#L6497)
- [`window_copy_redraw_screen`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6496)
- [`window_copy_start_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6492)
- [`window_copy_update_cursor`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6480)

## Other function references

- [`window_copy_cursor_unoffset`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_unoffset/) (function)
- [`window_copy_drag_release`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_drag_release/) (function)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.endselrx`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-endselrx/) (attribute)
- [`window_mode_entry.mode`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-mode/) (attribute)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`tty.mouse_drag_release`](/en/tmux/3.7c/reference/c-struct-tty-mouse_drag_release/) (attribute)
- [`tty.mouse_drag_update`](/en/tmux/3.7c/reference/c-struct-tty-mouse_drag_update/) (attribute)
- [`mouse_event`](/en/tmux/3.7c/reference/c-struct-mouse_event/) (struct)
- [`window_copy_mode_data.oy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`SEL_CHAR`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_char/) (constant)
- [`SEL_LINE`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_line/) (constant)
- [`SEL_WORD`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_word/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_mode_data.selrx`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-selrx/) (attribute)
- [`window_copy_mode_data.selry`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-selry/) (attribute)
- [`window_copy_mode_data.separators`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-separators/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`window_copy_mode`](/en/tmux/3.7c/reference/c-variable-window_copy_mode/) (attribute)
- [`window_view_mode`](/en/tmux/3.7c/reference/c-variable-window_view_mode/) (attribute)
