# popup_menu_done

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

```c
static void popup_menu_done(struct menu *menu, u_int choice, key_code key, void *data)
```

## Parameters

- `menu` (`struct menu *`)
- `choice` (`u_int`)
- `key` (`key_code`)
- `data` (`void *`)

## Calls

- [`paste_buffer_data`](/en/tmux/latest/reference/c-function-paste_buffer_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L474)
- [`paste_get_top`](/en/tmux/latest/reference/c-function-paste_get_top/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L472)
- [`popup_make_pane`](/en/tmux/latest/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L491)
- [`server_redraw_client`](/en/tmux/latest/reference/c-function-server_redraw_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L468)

## Other function references

- [`job_get_event`](/en/tmux/latest/reference/c-function-job_get_event/) (function)

## Referenced by

- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`popup_data.c`](/en/tmux/latest/reference/c-struct-popup_data-c/) (attribute)
- [`popup_data.close`](/en/tmux/latest/reference/c-struct-popup_data-close/) (attribute)
- [`popup_data.job`](/en/tmux/latest/reference/c-struct-popup_data-job/) (attribute)
- [`key_code`](/en/tmux/latest/reference/c-typedef-key_code/) (typealias)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/latest/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/latest/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`popup_data.md`](/en/tmux/latest/reference/c-struct-popup_data-md/) (attribute)
- [`menu`](/en/tmux/latest/reference/c-struct-menu/) (struct)
- [`popup_data.menu`](/en/tmux/latest/reference/c-struct-popup_data-menu/) (attribute)
- [`popup_data.px`](/en/tmux/latest/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/latest/reference/c-struct-popup_data-py/) (attribute)
- [`popup_data.sx`](/en/tmux/latest/reference/c-struct-popup_data-sx/) (attribute)
- [`tty.sx`](/en/tmux/latest/reference/c-struct-tty-sx/) (attribute)
- [`popup_data.sy`](/en/tmux/latest/reference/c-struct-popup_data-sy/) (attribute)
- [`tty.sy`](/en/tmux/latest/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/latest/reference/c-struct-client-tty/) (attribute)
