# libtmux::NewWindowOptions::index

- **Module:** libtmux::NewWindowOptions
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L111
- **Page:** https://libtmux.org/en/cxx/latest/reference/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.
