down_info is a struct that stores some information about the current
pressed touch events. It should be used for that specific touch point,
instead of the generic input info, when sending a mouse_up event.
ev->buttons = button;
ev->timestamp = timestamp;
- ev->x = input->sx;
- ev->y = input->sy;
ev->root.x = input->sx;
ev->root.y = input->sy;
ev->modifiers = input->modifiers;
ev->double_click = 1;
if (down_info->did_triple)
ev->triple_click = 1;
+ ev->x = down_info->sx;
+ ev->y = down_info->sy;
ev->multi.x = down_info->sx;
ev->multi.y = down_info->sy;
}
else
{
+ ev->x = input->sx;
+ ev->y = input->sy;
ev->multi.x = input->sx;
ev->multi.y = input->sy;
}