# LibTmux::Model::PaneRef.stack

- **Module:** LibTmux::Model
- **Package:** LibTmux
- **Language:** Raku
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-raku/blob/e76160bcce6e03976d49424da15b7c31afb2c68e/lib/LibTmux/Model.rakumod#L373
- **Page:** https://libtmux.org/en/raku/latest/reference/libtmux-model-paneref-stack/

```
method stack(Str:D $placement --> Result:D)
```

Change a floating pane's relative stacking order using a closed placement name.

Change a floating pane's relative stacking order using a closed placement name.

## Parameters

- `$placement` (`Str:D`)

## tmux command

The tmux commands behind `stack`.

- [`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)
