# window_copy_clone_screen

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

```c
static struct screen * window_copy_clone_screen(struct screen *src, struct screen *hint, u_int *cx, u_int *cy, int trim)
```

## Parameters

- `src` (`struct screen *`)
- `hint` (`struct screen *`)
- `cx` (`u_int *`)
- `cy` (`u_int *`)
- `trim` (`int`)

## Called by

- [`window_copy_cmd_refresh_from_pane`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_refresh_from_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2805)
- [`window_copy_init`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L476)

## Calls

- [`grid_duplicate_lines`](/en/tmux/3.7c/reference/c-function-grid_duplicate_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L397)
- [`grid_peek_line`](/en/tmux/3.7c/reference/c-function-grid_peek_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L381)
- [`grid_unwrap_position`](/en/tmux/3.7c/reference/c-function-grid_unwrap_position/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L422)
- [`grid_wrap_position`](/en/tmux/3.7c/reference/c-function-grid_wrap_position/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L418)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L387)
- [`xcalloc`](/en/tmux/3.7c/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L376)

## Other function references

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

## Referenced declarations

- [`grid_line.cellused`](/en/tmux/3.7c/reference/c-struct-grid_line-cellused/) (attribute)
- [`screen.cx`](/en/tmux/3.7c/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`grid.flags`](/en/tmux/3.7c/reference/c-struct-grid-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`GRID_HISTORY`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_history/) (constant)
- [`grid.hscrolled`](/en/tmux/3.7c/reference/c-struct-grid-hscrolled/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`screen_hlimit`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hlimit/) (constant)
- [`screen_hsize`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`grid.sy`](/en/tmux/3.7c/reference/c-struct-grid-sy/) (attribute)
