# libtmux::window_target

- **Module:** libtmux
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/target.hpp#L72
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-window_target/

```
libtmux::window_target(session: std::string_view, window: std::string_view) -> expected< std::string, TargetError >
```

A window target is its id, which needs no session, or `session:window`.
