# popup_handle_drag

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L174
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-popup-c-popup_key_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L224)

## Calls

- [`job_resize`](/en/tmux/3.2a/reference/c-function-job_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L209)
- [`screen_resize`](/en/tmux/3.2a/reference/c-function-screen_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L207)
- [`server_redraw_client`](/en/tmux/3.2a/reference/c-function-server_redraw_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L198)

## Referenced declarations

- [`mouse_event.b`](/en/tmux/3.2a/reference/c-struct-mouse_event-b/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`popup_data.dragging`](/en/tmux/3.2a/reference/c-struct-popup_data-dragging/) (attribute)
- [`popup_data.dx`](/en/tmux/3.2a/reference/c-struct-popup_data-dx/) (attribute)
- [`popup_data.dy`](/en/tmux/3.2a/reference/c-struct-popup_data-dy/) (attribute)
- [`popup_data.job`](/en/tmux/3.2a/reference/c-struct-popup_data-job/) (attribute)
- [`MOUSE_DRAG`](/en/tmux/3.2a/reference/c-define-tmux-h-mouse_drag/) (constant)
- [`mouse_event`](/en/tmux/3.2a/reference/c-struct-mouse_event/) (struct)
- [`popup_data`](/en/tmux/3.2a/reference/c-struct-popup_data/) (struct)
- [`popup_data.px`](/en/tmux/3.2a/reference/c-struct-popup_data-px/) (attribute)
- [`popup_data.py`](/en/tmux/3.2a/reference/c-struct-popup_data-py/) (attribute)
- [`popup_data.s`](/en/tmux/3.2a/reference/c-struct-popup_data-s/) (attribute)
- [`popup_data.sx`](/en/tmux/3.2a/reference/c-struct-popup_data-sx/) (attribute)
- [`tty.sx`](/en/tmux/3.2a/reference/c-struct-tty-sx/) (attribute)
- [`popup_data.sy`](/en/tmux/3.2a/reference/c-struct-popup_data-sy/) (attribute)
- [`tty.sy`](/en/tmux/3.2a/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`mouse_event.x`](/en/tmux/3.2a/reference/c-struct-mouse_event-x/) (attribute)
- [`mouse_event.y`](/en/tmux/3.2a/reference/c-struct-mouse_event-y/) (attribute)
