# libtmux::Window::linked_sessions

- **Module:** libtmux::Window
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/393d4b0ad666f18a6581f1eb281741a75a7503f0/include/libtmux/entities.hpp#L537
- **Page:** https://libtmux.org/en/cxx/latest/reference/libtmux-window-linked_sessions-w58l/

```
libtmux::Window::linked_sessions() -> long long
```

How many sessions hold this window.

More than one means the same window is shown in several places, and a command aimed at a bare id could land on any of them — which is why targets here are qualified.
