# window_pane_zindex

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

```c
int window_pane_zindex(struct window_pane *wp, u_int *i)
```

## Parameters

- `wp` (`struct window_pane *`)
- `i` (`u_int *`)

## Called by

- [`sort_pane_cmp`](/en/tmux/3.7c/reference/c-function-sort-c-sort_pane_cmp/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/sort.c#L223)

## Calls

- [`window_pane_is_floating`](/en/tmux/3.7c/reference/c-function-window_pane_is_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L929)

## Referenced by

- [`format_cb_pane_z`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_pane_z/) (function)

## Referenced declarations

- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window.z_index`](/en/tmux/3.7c/reference/c-struct-window-z_index/) (attribute)
- [`window_pane.zentry`](/en/tmux/3.7c/reference/c-struct-window_pane-zentry/) (attribute)
