# libtmux::NewWindowOptions::index

- **Module:** libtmux::NewWindowOptions
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/entities.hpp#L102
- **Page:** https://libtmux.org/reference/cxx/libtmux-newwindowoptions-index/

Put the window at this index rather than at the next free one.

tmux refuses an index already in use rather than shifting anything, and that refusal is kept: a workspace rebuilt over a running one should say so rather than quietly land somewhere else.
