# LibTmux::Model::PaneRef.set-z-index

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/0b5dd3d32e20f83a0069874e33eab0eb48f55962/lib/LibTmux/Model.rakumod#L380
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-set-z-index/

```
method set-z-index(Count:D $index --> Result:D)
```

Set a floating pane's nonnegative stacking index.

Set a floating pane's nonnegative stacking index.

## Parameters

- `$index` (`Count:D`)

## tmux command

The tmux commands behind `set-z-index`.

- [`move-pane`](/en/tmux/latest/manual/move-pane/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_move_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_move_pane_entry/) (attribute)
- [`cmd_join_pane_exec`](/en/tmux/latest/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function)
