# window_resize

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L409
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window_resize/

```c
void window_resize(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

- [`layout_parse`](/en/tmux/3.2a/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-custom.c#L224)
- [`layout_set_even`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L167)
- [`layout_set_main_h`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L277)
- [`layout_set_main_v`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L375)
- [`layout_set_tiled`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L484)
- [`resize_window`](/en/tmux/3.2a/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L53)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L416)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`DEFAULT_XPIXEL`](/en/tmux/3.2a/reference/c-define-tmux-h-default_xpixel/) (constant)
- [`DEFAULT_YPIXEL`](/en/tmux/3.2a/reference/c-define-tmux-h-default_ypixel/) (constant)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`window.sx`](/en/tmux/3.2a/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/3.2a/reference/c-struct-window-sy/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`window.xpixel`](/en/tmux/3.2a/reference/c-struct-window-xpixel/) (attribute)
- [`window.ypixel`](/en/tmux/3.2a/reference/c-struct-window-ypixel/) (attribute)
