# window.placementTarget

- **Module:** window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L90
- **Page:** https://libtmux.org/reference/ts/window-placementtarget/

```
window.placementTarget(window: : Window) -> string
```

This placement, as tmux addresses one.

A window linked into two sessions is one window with two placements sharing
an id, and a bare `@id` leaves tmux to choose between them — which it does
consistently, and consistently without regard for which placement the handle
came from. Qualifying with the session is what makes an operation act on the
placement it was reached through.

Only the operations that address a placement take this. `kill`, `rename`,
`selectLayout` and `resize` act on the window itself, wherever it is linked,
and naming a session there would suggest a choice that does not exist.
