# window_copy_clear_selection

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

```c
static void window_copy_clear_selection(struct window_mode_entry *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)

## Called by

- [`window_copy_cmd_append_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1147)
- [`window_copy_cmd_append_selection_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_append_selection_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1159)
- [`window_copy_cmd_clear_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1227)
- [`window_copy_cmd_copy_pipe`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2433)
- [`window_copy_cmd_copy_pipe_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2443)
- [`window_copy_cmd_copy_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1434)
- [`window_copy_cmd_copy_selection_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_copy_selection_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1444)
- [`window_copy_cmd_pipe`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2472)
- [`window_copy_cmd_pipe_and_cancel`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_pipe_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2482)
- [`window_copy_do_copy_end_of_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_do_copy_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1282)
- [`window_copy_do_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_do_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1370)
- [`window_copy_size_changed`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_size_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1055)

## Calls

- [`screen_clear_selection`](/en/tmux/latest/reference/c-function-screen_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5671)
- [`window_copy_cursor_limit`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_limit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5678)
- [`window_copy_update_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5680)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cursordrag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cursordrag/) (attribute)
- [`CURSORDRAG_NONE`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-171347220270030325112165345063320142325041012373-cursordrag_none/) (constant)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`LINE_SEL_NONE`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-253364054321004071040107322151204133204166300136-line_sel_none/) (constant)
- [`window_copy_mode_data.lineflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`SEL_CHAR`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_char/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
