# window_copy_adjust_selection

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

```c
static int window_copy_adjust_selection(struct window_mode_entry *, u_int *, u_int *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `selx` (`u_int *`)
- `sely` (`u_int *`)

## Called by

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

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`window_copy_mode_data.screen`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-screen/) (attribute)
- [`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)
- [`WINDOW_COPY_REL_POS_ABOVE`](/en/tmux/3.7c/reference/c-enum-window-copy-c-022115236274055101041127131067314202307340154203-window_copy_rel_pos_above/) (constant)
- [`WINDOW_COPY_REL_POS_BELOW`](/en/tmux/3.7c/reference/c-enum-window-copy-c-022115236274055101041127131067314202307340154203-window_copy_rel_pos_below/) (constant)
- [`WINDOW_COPY_REL_POS_ON_SCREEN`](/en/tmux/3.7c/reference/c-enum-window-copy-c-022115236274055101041127131067314202307340154203-window_copy_rel_pos_on_screen/) (constant)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
