# window_copy_view_init

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

```c
static struct screen * window_copy_view_init(struct window_mode_entry *, struct cmd_find_state *, struct args *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `fs` (`struct cmd_find_state *`)
- `args` (`struct args *`)

## Calls

- [`input_init`](/en/tmux/latest/reference/c-function-input_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L530)
- [`window_copy_common_init`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_common_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L524)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L528)

## Other function references

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

## Referenced by

- [`window_view_mode`](/en/tmux/latest/reference/c-variable-window_view_mode/) (attribute)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`args`](/en/tmux/latest/reference/c-struct-args/) (struct)
- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_pane.base`](/en/tmux/latest/reference/c-struct-window_pane-base/) (attribute)
- [`cmd_find_state`](/en/tmux/latest/reference/c-struct-cmd_find_state/) (struct)
- [`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_copy_mode_data.ictx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-ictx/) (attribute)
- [`window_copy_mode_data.line_numbers`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-line_numbers/) (attribute)
- [`window_copy_mode_data.mx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-mx/) (attribute)
- [`window_copy_mode_data.my`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-my/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`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)
- [`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.showmark`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-showmark/) (attribute)
- [`window_copy_mode_data.viewmode`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-viewmode/) (attribute)
- [`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)
