# window_create

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L298
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window_create/

```c
struct window * window_create(u_int sx, u_int sy, u_int xpixel, u_int ypixel)
```

## Parameters

- `sx` (`u_int`)
- `sy` (`u_int`)
- `xpixel` (`u_int`)
- `ypixel` (`u_int`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-break-pane.c#L100)

## Calls

- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L332)
- [`options_create`](/en/tmux/3.2a/reference/c-function-options_create/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L322)
- [`window_update_activity`](/en/tmux/3.2a/reference/c-function-window_update_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L330)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L307)
- [`xstrdup`](/en/tmux/3.2a/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L308)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)
- [`spawn_window`](/en/tmux/3.2a/reference/c-function-spawn_window/) (function)

## Referenced declarations

- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`DEFAULT_XPIXEL`](/en/tmux/3.2a/reference/c-define-tmux-h-default_xpixel/) (constant)
- [`DEFAULT_YPIXEL`](/en/tmux/3.2a/reference/c-define-tmux-h-default_ypixel/) (constant)
- [`window.flags`](/en/tmux/3.2a/reference/c-struct-window-flags/) (attribute)
- [`global_w_options`](/en/tmux/3.2a/reference/c-variable-global_w_options/) (attribute)
- [`window.id`](/en/tmux/3.2a/reference/c-struct-window-id/) (attribute)
- [`window.lastlayout`](/en/tmux/3.2a/reference/c-struct-window-lastlayout/) (attribute)
- [`window.layout_root`](/en/tmux/3.2a/reference/c-struct-window-layout_root/) (attribute)
- [`window.name`](/en/tmux/3.2a/reference/c-struct-window-name/) (attribute)
- [`next_window_id`](/en/tmux/3.2a/reference/c-variable-window-c-next_window_id/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`window.panes`](/en/tmux/3.2a/reference/c-struct-window-panes/) (attribute)
- [`window.references`](/en/tmux/3.2a/reference/c-struct-window-references/) (attribute)
- [`window.sx`](/en/tmux/3.2a/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/3.2a/reference/c-struct-window-sy/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`window.winlinks`](/en/tmux/3.2a/reference/c-struct-window-winlinks/) (attribute)
- [`window.xpixel`](/en/tmux/3.2a/reference/c-struct-window-xpixel/) (attribute)
- [`window.ypixel`](/en/tmux/3.2a/reference/c-struct-window-ypixel/) (attribute)
