# cmd_list_panes_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L88
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_window/

```c
static void cmd_list_panes_window(struct cmd *, struct session *, struct winlink *, struct cmdq_item *, int)
```

## Parameters

- `self` (`struct cmd *`)
- `s` (`struct session *`)
- `wl` (`struct winlink *`)
- `item` (`struct cmdq_item *`)
- `type` (`int`)

## Called by

- [`cmd_list_panes_exec`](/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L63)
- [`cmd_list_panes_session`](/en/tmux/3.2a/reference/c-function-cmd-list-panes-c-cmd_list_panes_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L84)

## Calls

- [`args_get`](/en/tmux/3.2a/reference/c-function-args_get/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L99)
- [`cmd_get_args`](/en/tmux/3.2a/reference/c-function-cmd_get_args/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L91)
- [`cmdq_print`](/en/tmux/3.2a/reference/c-function-cmdq_print/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L141)
- [`format_add`](/en/tmux/3.2a/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L130)
- [`format_defaults`](/en/tmux/3.2a/reference/c-function-format_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L131)
- [`format_expand`](/en/tmux/3.2a/reference/c-function-format_expand/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L134)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L145)
- [`format_true`](/en/tmux/3.2a/reference/c-function-format_true/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-list-panes.c#L135)

## Other function references

- [`cmdq_get_client`](/en/tmux/3.2a/reference/c-function-cmdq_get_client/) (function)
- [`format_create`](/en/tmux/3.2a/reference/c-function-format_create/) (function)

## Referenced declarations

- [`cmd`](/en/tmux/3.2a/reference/c-struct-cmd/) (struct)
- [`cmdq_item`](/en/tmux/3.2a/reference/c-struct-cmdq_item/) (struct)
- [`FORMAT_NONE`](/en/tmux/3.2a/reference/c-define-tmux-h-format_none/) (constant)
- [`format_tree.item`](/en/tmux/3.2a/reference/c-struct-format_tree-item/) (attribute)
- [`window.panes`](/en/tmux/3.2a/reference/c-struct-window-panes/) (attribute)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`format_tree.type`](/en/tmux/3.2a/reference/c-struct-format_tree-type/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`format_tree.wl`](/en/tmux/3.2a/reference/c-struct-format_tree-wl/) (attribute)
- [`format_tree.wp`](/en/tmux/3.2a/reference/c-struct-format_tree-wp/) (attribute)
