# window_customize_build

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L527
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build/

```c
static void window_customize_build(void *modedata, struct sort_criteria *sort_crit, uint64_t *tag, const char *filter)
```

## Parameters

- `modedata` (`void *`)
- `sort_crit` (`struct sort_criteria *`)
- `tag` (`uint64_t *`)
- `filter` (`const char *`)

## Calls

- [`cmd_find_copy_state`](/en/tmux/latest/reference/c-function-cmd_find_copy_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L544)
- [`cmd_find_from_pane`](/en/tmux/latest/reference/c-function-cmd_find_from_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L546)
- [`cmd_find_valid_state`](/en/tmux/latest/reference/c-function-cmd_find_valid_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L543)
- [`format_add`](/en/tmux/latest/reference/c-function-format_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L549)
- [`format_create_from_state`](/en/tmux/latest/reference/c-function-format_create_from_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L548)
- [`format_free`](/en/tmux/latest/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L571)
- [`key_bindings_first_table`](/en/tmux/latest/reference/c-function-key_bindings_first_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L575)
- [`key_bindings_next_table`](/en/tmux/latest/reference/c-function-key_bindings_next_table/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L583)
- [`window_customize_build_keys`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_keys/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L578)
- [`window_customize_build_options`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_build_options/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L552)
- [`window_customize_free_item`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_free_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L538)

## Referenced by

- [`window_customize_init`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_init/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`window_customize_modedata.data`](/en/tmux/latest/reference/c-struct-window_customize_modedata-data/) (attribute)
- [`window_customize_modedata.fs`](/en/tmux/latest/reference/c-struct-window_customize_modedata-fs/) (attribute)
- [`global_options`](/en/tmux/latest/reference/c-variable-global_options/) (attribute)
- [`global_s_options`](/en/tmux/latest/reference/c-variable-global_s_options/) (attribute)
- [`global_w_options`](/en/tmux/latest/reference/c-variable-global_w_options/) (attribute)
- [`window_customize_modedata.item_list`](/en/tmux/latest/reference/c-struct-window_customize_modedata-item_list/) (attribute)
- [`window_customize_modedata.item_size`](/en/tmux/latest/reference/c-struct-window_customize_modedata-item_size/) (attribute)
- [`key_table.key_bindings`](/en/tmux/latest/reference/c-struct-key_table-key_bindings/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`window_pane.options`](/en/tmux/latest/reference/c-struct-window_pane-options/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`OPTIONS_TABLE_SERVER`](/en/tmux/latest/reference/c-define-tmux-h-options_table_server/) (constant)
- [`OPTIONS_TABLE_SESSION`](/en/tmux/latest/reference/c-define-tmux-h-options_table_session/) (constant)
- [`OPTIONS_TABLE_WINDOW`](/en/tmux/latest/reference/c-define-tmux-h-options_table_window/) (constant)
- [`cmd_find_state.s`](/en/tmux/latest/reference/c-struct-cmd_find_state-s/) (attribute)
- [`sort_criteria`](/en/tmux/latest/reference/c-struct-sort_criteria/) (struct)
- [`cmd_find_state.w`](/en/tmux/latest/reference/c-struct-cmd_find_state-w/) (attribute)
- [`WINDOW_CUSTOMIZE_GLOBAL_SESSION`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_global_session/) (constant)
- [`WINDOW_CUSTOMIZE_GLOBAL_WINDOW`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_global_window/) (constant)
- [`WINDOW_CUSTOMIZE_NONE`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_none/) (constant)
- [`WINDOW_CUSTOMIZE_PANE`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_pane/) (constant)
- [`WINDOW_CUSTOMIZE_SERVER`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_server/) (constant)
- [`WINDOW_CUSTOMIZE_SESSION`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_session/) (constant)
- [`WINDOW_CUSTOMIZE_WINDOW`](/en/tmux/latest/reference/c-enum-window_customize_scope-window_customize_window/) (constant)
- [`cmd_find_state.wp`](/en/tmux/latest/reference/c-struct-cmd_find_state-wp/) (attribute)
- [`window_customize_modedata.wp`](/en/tmux/latest/reference/c-struct-window_customize_modedata-wp/) (attribute)
