# window_pane_choose_best

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

```c
static struct window_pane * window_pane_choose_best(struct window_pane **list, u_int size)
```

## Parameters

- `list` (`struct window_pane **`)
- `size` (`u_int`)

## Called by

- [`window_pane_find_down`](/en/tmux/latest/reference/c-function-window_pane_find_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1613)
- [`window_pane_find_left`](/en/tmux/latest/reference/c-function-window_pane_find_left/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1665)
- [`window_pane_find_right`](/en/tmux/latest/reference/c-function-window_pane_find_right/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1717)
- [`window_pane_find_up`](/en/tmux/latest/reference/c-function-window_pane_find_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1552)

## Referenced declarations

- [`window_pane.active_point`](/en/tmux/latest/reference/c-struct-window_pane-active_point/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
