# window_copy_common_init

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

```c
static struct window_copy_mode_data * window_copy_common_init(struct window_mode_entry *wme)
```

## Parameters

- `wme` (`struct window_mode_entry *`)

## Called by

- [`window_copy_init`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L475)
- [`window_copy_view_init`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_view_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L524)

## Calls

- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L458)
- [`screen_set_default_cursor`](/en/tmux/latest/reference/c-function-screen_set_default_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L457)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L434)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L443)

## Other function references

- [`screen_init`](/en/tmux/latest/reference/c-function-screen_init/) (function)
- [`window_copy_scroll_timer`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_timer/) (function)

## Referenced declarations

- [`window_pane.base`](/en/tmux/latest/reference/c-struct-window_pane-base/) (attribute)
- [`window_copy_mode_data.cursordrag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cursordrag/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.dragtimer`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-dragtimer/) (attribute)
- [`global_w_options`](/en/tmux/latest/reference/c-variable-global_w_options/) (attribute)
- [`window_copy_mode_data.jumpchar`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-jumpchar/) (attribute)
- [`window_copy_mode_data.jumptype`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-jumptype/) (attribute)
- [`window_copy_mode_data.line_numbers`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-line_numbers/) (attribute)
- [`window_copy_mode_data.lineflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`window_copy_mode_data.modekeys`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-modekeys/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_copy_mode_data.searchall`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchall/) (attribute)
- [`window_copy_mode_data.searcho`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searcho/) (attribute)
- [`window_copy_mode_data.searchregex`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchregex/) (attribute)
- [`window_pane.searchregex`](/en/tmux/latest/reference/c-struct-window_pane-searchregex/) (attribute)
- [`window_copy_mode_data.searchstr`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchstr/) (attribute)
- [`window_pane.searchstr`](/en/tmux/latest/reference/c-struct-window_pane-searchstr/) (attribute)
- [`window_copy_mode_data.searchtype`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchtype/) (attribute)
- [`window_copy_mode_data.searchx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchx/) (attribute)
- [`window_copy_mode_data.searchy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchy/) (attribute)
- [`window_copy_mode_data.selflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_copy_mode_data`](/en/tmux/latest/reference/c-struct-window_copy_mode_data/) (struct)
- [`WINDOW_COPY_OFF`](/en/tmux/latest/reference/c-enum-window-copy-c-017035225075164020071126107236326314315017145073-window_copy_off/) (constant)
- [`WINDOW_COPY_SEARCHUP`](/en/tmux/latest/reference/c-enum-window-copy-c-017035225075164020071126107236326314315017145073-window_copy_searchup/) (constant)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
