int last_last_win;
int last_event_win;
int last_last_event_win;
+ int sx, sy;
unsigned int last_time;
unsigned int last_last_time;
Eina_Bool did_double : 1;
_ecore_wl_input_mouse_move_send(Ecore_Wl_Input *input, Ecore_Wl_Window *win, unsigned int timestamp, int device)
{
Ecore_Event_Mouse_Move *ev;
+ Ecore_Wl_Mouse_Down_Info *down_info;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
ev->multi.x = input->sx;
ev->multi.y = input->sy;
+ if ((down_info = _ecore_wl_mouse_down_info_get(device)))
+ {
+ down_info->sx = input->sx;
+ down_info->sy = input->sy;
+ }
+
if (win)
{
ev->window = win->id;
* devices */
if ((down_info = _ecore_wl_mouse_down_info_get(device)))
{
+ down_info->sx = input->sx;
+ down_info->sy = input->sy;
if (down_info->did_triple)
{
down_info->last_win = 0;
ev->double_click = 1;
if (down_info->did_triple)
ev->triple_click = 1;
+ ev->multi.x = down_info->sx;
+ ev->multi.y = down_info->sy;
+ }
+ else
+ {
+ ev->multi.x = input->sx;
+ ev->multi.y = input->sy;
}
ev->multi.device = device;
ev->multi.radius_y = 1;
ev->multi.pressure = 1.0;
ev->multi.angle = 0.0;
- ev->multi.x = input->sx;
- ev->multi.y = input->sy;
if (win)
{