# mode_tree_resize

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L651
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-mode_tree_resize/

```c
void mode_tree_resize(struct mode_tree_data *mtd, u_int sx, u_int sy)
```

## Parameters

- `mtd` (`struct mode_tree_data *`)
- `sx` (`u_int`)
- `sy` (`u_int`)

## Called by

- [`window_buffer_resize`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L415)
- [`window_client_resize`](/en/tmux/3.7c/reference/c-function-window-client-c-window_client_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-client.c#L326)
- [`window_customize_resize`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L960)
- [`window_tree_resize`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L989)

## Calls

- [`mode_tree_build`](/en/tmux/3.7c/reference/c-function-mode_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L657)
- [`mode_tree_draw`](/en/tmux/3.7c/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L658)
- [`screen_resize`](/en/tmux/3.7c/reference/c-function-screen_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L655)

## Referenced declarations

- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`mode_tree_data`](/en/tmux/3.7c/reference/c-struct-mode_tree_data/) (struct)
- [`PANE_REDRAW`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_redraw/) (constant)
- [`mode_tree_data.screen`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-screen/) (attribute)
- [`mode_tree_data.wp`](/en/tmux/3.7c/reference/c-struct-mode_tree_data-wp/) (attribute)
