# window_copy_synchronize_cursor

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3791
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_synchronize_cursor/

```c
static void window_copy_synchronize_cursor(struct window_mode_entry *, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `no_reset` (`int`)

## Called by

- [`window_copy_set_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3902)

## Calls

- [`window_copy_synchronize_cursor_end`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_synchronize_cursor_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3797)

## Referenced declarations

- [`window_copy_mode_data.cursordrag`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-cursordrag/) (attribute)
- [`CURSORDRAG_ENDSEL`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-171347220270030325112165345063320142325041012373-cursordrag_endsel/) (constant)
- [`CURSORDRAG_NONE`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-171347220270030325112165345063320142325041012373-cursordrag_none/) (constant)
- [`CURSORDRAG_SEL`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-171347220270030325112165345063320142325041012373-cursordrag_sel/) (constant)
- [`window_mode_entry.data`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
