# layout_fix_zindexes

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

```c
void layout_fix_zindexes(struct window *w, struct layout_cell *lc)
```

## Parameters

- `w` (`struct window *`)
- `lc` (`struct layout_cell *`)

## Called by

- [`layout_fix_zindexes`](/en/tmux/3.7c/reference/c-function-layout_fix_zindexes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L236)
- [`layout_parse`](/en/tmux/3.7c/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L281)

## Calls

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

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`layout_cell.type`](/en/tmux/3.7c/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`layout_cell.wp`](/en/tmux/3.7c/reference/c-struct-layout_cell-wp/) (attribute)
- [`window.z_index`](/en/tmux/3.7c/reference/c-struct-window-z_index/) (attribute)
