# default_window_size

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

```c
void default_window_size(struct client *c, struct session *s, struct window *w, u_int *sx, u_int *sy, u_int *xpixel, u_int *ypixel, int type)
```

## Parameters

- `c` (`struct client *`)
- `s` (`struct session *`)
- `w` (`struct window *`)
- `sx` (`u_int *`)
- `sy` (`u_int *`)
- `xpixel` (`u_int *`)
- `ypixel` (`u_int *`)
- `type` (`int`)

## Called by

- [`cmd_resize_window_exec`](/en/tmux/latest/reference/c-function-cmd-resize-window-c-cmd_resize_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-window.c#L102)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L153)

## Calls

- [`clients_calculate_size`](/en/tmux/latest/reference/c-function-resize-c-clients_calculate_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L312)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L296)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L285)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L314)

## Other function references

- [`default_window_size_skip_client`](/en/tmux/latest/reference/c-function-resize-c-default_window_size_skip_client/) (function)
- [`ignore_client_size`](/en/tmux/latest/reference/c-function-resize-c-ignore_client_size/) (function)
- [`status_line_size`](/en/tmux/latest/reference/c-function-status_line_size/) (function)

## Referenced by

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

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`CLIENT_CONTROL`](/en/tmux/latest/reference/c-define-tmux-h-client_control/) (constant)
- [`client.flags`](/en/tmux/latest/reference/c-struct-client-flags/) (attribute)
- [`global_w_options`](/en/tmux/latest/reference/c-variable-global_w_options/) (attribute)
- [`client.name`](/en/tmux/latest/reference/c-struct-client-name/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`session`](/en/tmux/latest/reference/c-struct-session/) (struct)
- [`client_window.sx`](/en/tmux/latest/reference/c-struct-client_window-sx/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`client_window.sy`](/en/tmux/latest/reference/c-struct-client_window-sy/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`WINDOW_MAXIMUM`](/en/tmux/latest/reference/c-define-tmux-h-window_maximum/) (constant)
- [`WINDOW_MINIMUM`](/en/tmux/latest/reference/c-define-tmux-h-window_minimum/) (constant)
- [`WINDOW_SIZE_LATEST`](/en/tmux/latest/reference/c-define-tmux-h-window_size_latest/) (constant)
- [`tty.xpixel`](/en/tmux/latest/reference/c-struct-tty-xpixel/) (attribute)
- [`tty.ypixel`](/en/tmux/latest/reference/c-struct-tty-ypixel/) (attribute)
