- context = engine_get_context(e->data.x.client,
- e->data.x.e->xbutton.window);
- fire_motion(MouseAction_Motion, context,
- e->data.x.client, e->data.x.e->xmotion.state,
- button, cx, cy, cw, ch, dx, dy, FALSE, corner);
+ if (ABS(dx) >= drag_threshold || ABS(dy) >= drag_threshold)
+ drag = TRUE;
+ if (drag) {
+ context = engine_get_context(e->data.x.client,
+ e->data.x.e->xbutton.window);
+ fire_motion(MouseAction_Motion, context,
+ e->data.x.client, e->data.x.e->xmotion.state,
+ button, cx, cy, cw, ch, dx, dy, FALSE, corner);
+ }