# window_copy_clear_selection

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4236
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-window-copy-c-window_copy_cmd_append_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L877)
- [`window_copy_cmd_append_selection_and_cancel`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_append_selection_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L889)
- [`window_copy_cmd_clear_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L957)
- [`window_copy_cmd_copy_pipe`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1891)
- [`window_copy_cmd_copy_pipe_and_cancel`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_copy_pipe_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1901)
- [`window_copy_cmd_copy_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_copy_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1050)
- [`window_copy_cmd_copy_selection_and_cancel`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_copy_selection_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1060)
- [`window_copy_cmd_pipe`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_pipe/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1929)
- [`window_copy_cmd_pipe_and_cancel`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_pipe_and_cancel/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1939)
- [`window_copy_size_changed`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_size_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L784)

## Calls

- [`screen_clear_selection`](/en/tmux/3.2a/reference/c-function-screen_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4241)
- [`window_copy_find_length`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_find_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4248)
- [`window_copy_update_cursor`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4250)

## Referenced declarations

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