# window_count_panes

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L941
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window_count_panes/

```c
u_int window_count_panes(struct window *w, int with_floating)
```

## Parameters

- `w` (`struct window *`)
- `with_floating` (`int`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L81)
- [`cmd_join_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-join-pane-c-cmd_join_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-join-pane.c#L134)
- [`layout_parse`](/en/tmux/3.7c/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L210)
- [`layout_set_even`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L148)
- [`layout_set_main_h`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L218)
- [`layout_set_main_h_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L320)
- [`layout_set_main_v`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L422)
- [`layout_set_main_v_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L524)
- [`layout_set_tiled`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L626)
- [`server_kill_pane`](/en/tmux/3.7c/reference/c-function-server_kill_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L187)
- [`window_tree_build`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L391)
- [`window_tree_draw_window`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_draw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L582)
- [`window_zoom`](/en/tmux/3.7c/reference/c-function-window_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L729)

## Other function references

- [`window_pane_is_floating`](/en/tmux/3.7c/reference/c-function-window_pane_is_floating/) (function)

## Referenced by

- [`cmd_select_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-select-pane-c-cmd_select_pane_exec/) (function)
- [`format_cb_window_panes`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_window_panes/) (function)

## Referenced declarations

- [`window_pane.entry`](/en/tmux/3.7c/reference/c-struct-window_pane-entry/) (attribute)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
