# popup_mode_cb

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

```c
static struct screen * popup_mode_cb(struct client *c, void *data, u_int *cx, u_int *cy)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `cx` (`u_int *`)
- `cy` (`u_int *`)

## Calls

- [`menu_mode_cb`](/en/tmux/3.7c/reference/c-function-menu_mode_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L223)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`popup_data.border_lines`](/en/tmux/3.7c/reference/c-struct-popup_data-border_lines/) (attribute)
- [`BOX_LINES_NONE`](/en/tmux/3.7c/reference/c-enum-box_lines-box_lines_none/) (constant)
- [`popup_data.c`](/en/tmux/3.7c/reference/c-struct-popup_data-c/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`screen.cx`](/en/tmux/3.7c/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.7c/reference/c-struct-screen-cy/) (attribute)
- [`popup_data.md`](/en/tmux/3.7c/reference/c-struct-popup_data-md/) (attribute)
- [`popup_data.px`](/en/tmux/3.7c/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/3.7c/reference/c-struct-popup_data-py/) (attribute)
- [`popup_data.s`](/en/tmux/3.7c/reference/c-struct-popup_data-s/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
