# layout_fix_offsets

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

```c
void layout_fix_offsets(struct window *w)
```

## Parameters

- `w` (`struct window *`)

## Called by

- [`layout_close_pane`](/en/tmux/3.7c/reference/c-function-layout_close_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1215)
- [`layout_parse`](/en/tmux/3.7c/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L284)
- [`layout_resize`](/en/tmux/3.7c/reference/c-function-layout_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L663)
- [`layout_resize_layout`](/en/tmux/3.7c/reference/c-function-layout_resize_layout/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L723)
- [`layout_set_even`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L184)
- [`layout_set_main_h`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L298)
- [`layout_set_main_h_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L400)
- [`layout_set_main_v`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L502)
- [`layout_set_main_v_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L604)
- [`layout_set_tiled`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L725)
- [`layout_split_pane`](/en/tmux/3.7c/reference/c-function-layout_split_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1160)
- [`layout_spread_out`](/en/tmux/3.7c/reference/c-function-layout_spread_out/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1298)

## Calls

- [`layout_fix_offsets1`](/en/tmux/3.7c/reference/c-function-layout-c-layout_fix_offsets1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L288)

## Referenced declarations

- [`layout_cell.flags`](/en/tmux/3.7c/reference/c-struct-layout_cell-flags/) (attribute)
- [`LAYOUT_CELL_FLOATING`](/en/tmux/3.7c/reference/c-define-tmux-h-layout_cell_floating/) (constant)
- [`window.layout_root`](/en/tmux/3.7c/reference/c-struct-window-layout_root/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`layout_cell.xoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-xoff/) (attribute)
- [`layout_cell.yoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-yoff/) (attribute)
