# resize_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L26
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-resize_window/

```c
void resize_window(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
```

## Parameters

- `w` (`struct window *`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `xpixel` (`int`)
- `ypixel` (`int`)

## Called by

- [`recalculate_size`](/en/tmux/3.7c/reference/c-function-recalculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L407)
- [`server_client_check_window_resize`](/en/tmux/3.7c/reference/c-function-server-client-c-server_client_check_window_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-client.c#L1575)

## Calls

- [`layout_resize`](/en/tmux/3.7c/reference/c-function-layout_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L46)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L54)
- [`notify_window`](/en/tmux/3.7c/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L63)
- [`server_redraw_window`](/en/tmux/3.7c/reference/c-function-server_redraw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L62)
- [`tty_update_window_offset`](/en/tmux/3.7c/reference/c-function-tty_update_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L61)
- [`window_resize`](/en/tmux/3.7c/reference/c-function-window_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L53)
- [`window_unzoom`](/en/tmux/3.7c/reference/c-function-window_unzoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L43)
- [`window_zoom`](/en/tmux/3.7c/reference/c-function-window_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L59)

## Referenced by

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

## Referenced declarations

- [`window.active`](/en/tmux/3.7c/reference/c-struct-window-active/) (attribute)
- [`window.flags`](/en/tmux/3.7c/reference/c-struct-window-flags/) (attribute)
- [`window.id`](/en/tmux/3.7c/reference/c-struct-window-id/) (attribute)
- [`window.layout_root`](/en/tmux/3.7c/reference/c-struct-window-layout_root/) (attribute)
- [`layout_cell.sx`](/en/tmux/3.7c/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.7c/reference/c-struct-layout_cell-sy/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`WINDOW_MAXIMUM`](/en/tmux/3.7c/reference/c-define-tmux-h-window_maximum/) (constant)
- [`WINDOW_MINIMUM`](/en/tmux/3.7c/reference/c-define-tmux-h-window_minimum/) (constant)
- [`WINDOW_RESIZE`](/en/tmux/3.7c/reference/c-define-tmux-h-window_resize/) (constant)
- [`WINDOW_ZOOMED`](/en/tmux/3.7c/reference/c-define-tmux-h-window_zoomed/) (constant)
