# recalculate_size

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

```c
void recalculate_size(struct window *w, int now)
```

## Parameters

- `w` (`struct window *`)
- `now` (`int`)

## Called by

- [`recalculate_sizes_now`](/en/tmux/3.2a/reference/c-function-recalculate_sizes_now/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L394)
- [`server_client_update_latest`](/en/tmux/3.2a/reference/c-function-server-client-c-server_client_update_latest/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-client.c#L1125)

## Calls

- [`clients_calculate_size`](/en/tmux/3.2a/reference/c-function-resize-c-clients_calculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L311)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L300)
- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L307)
- [`resize_window`](/en/tmux/3.2a/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L342)
- [`tty_update_window_offset`](/en/tmux/3.2a/reference/c-function-tty_update_window_offset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L331)

## Other function references

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

## Referenced by

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

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`window.flags`](/en/tmux/3.2a/reference/c-struct-window-flags/) (attribute)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`window.new_sx`](/en/tmux/3.2a/reference/c-struct-window-new_sx/) (attribute)
- [`window.new_sy`](/en/tmux/3.2a/reference/c-struct-window-new_sy/) (attribute)
- [`window.new_xpixel`](/en/tmux/3.2a/reference/c-struct-window-new_xpixel/) (attribute)
- [`window.new_ypixel`](/en/tmux/3.2a/reference/c-struct-window-new_ypixel/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (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_RESIZE`](/en/tmux/3.2a/reference/c-define-tmux-h-window_resize/) (constant)
- [`WINDOW_SIZE_MANUAL`](/en/tmux/3.2a/reference/c-define-tmux-h-window_size_manual/) (constant)
