# popup_handle_drag

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

```c
static void popup_handle_drag(struct client *c, struct popup_data *pd, struct mouse_event *m)
```

## Parameters

- `c` (`struct client *`)
- `pd` (`struct popup_data *`)
- `m` (`struct mouse_event *`)

## Called by

- [`popup_key_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L584)

## Calls

- [`job_resize`](/en/tmux/latest/reference/c-function-job_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L550)
- [`screen_resize`](/en/tmux/latest/reference/c-function-screen_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L548)
- [`server_redraw_client`](/en/tmux/latest/reference/c-function-server_redraw_client/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L529)

## Referenced declarations

- [`mouse_event.b`](/en/tmux/latest/reference/c-struct-mouse_event-b/) (attribute)
- [`popup_data.border_lines`](/en/tmux/latest/reference/c-struct-popup_data-border_lines/) (attribute)
- [`BOX_LINES_NONE`](/en/tmux/latest/reference/c-enum-box_lines-box_lines_none/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`popup_data.dragging`](/en/tmux/latest/reference/c-struct-popup_data-dragging/) (attribute)
- [`popup_data.dx`](/en/tmux/latest/reference/c-struct-popup_data-dx/) (attribute)
- [`popup_data.dy`](/en/tmux/latest/reference/c-struct-popup_data-dy/) (attribute)
- [`popup_data.job`](/en/tmux/latest/reference/c-struct-popup_data-job/) (attribute)
- [`MOUSE_DRAG`](/en/tmux/latest/reference/c-define-tmux-h-mouse_drag/) (constant)
- [`mouse_event`](/en/tmux/latest/reference/c-struct-mouse_event/) (struct)
- [`popup_data`](/en/tmux/latest/reference/c-struct-popup_data/) (struct)
- [`popup_data.ppx`](/en/tmux/latest/reference/c-struct-popup_data-ppx/) (attribute)
- [`popup_data.ppy`](/en/tmux/latest/reference/c-struct-popup_data-ppy/) (attribute)
- [`popup_data.psx`](/en/tmux/latest/reference/c-struct-popup_data-psx/) (attribute)
- [`popup_data.psy`](/en/tmux/latest/reference/c-struct-popup_data-psy/) (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.s`](/en/tmux/latest/reference/c-struct-popup_data-s/) (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)
- [`mouse_event.x`](/en/tmux/latest/reference/c-struct-mouse_event-x/) (attribute)
- [`mouse_event.y`](/en/tmux/latest/reference/c-struct-mouse_event-y/) (attribute)
