if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Move)))) return;
- ev->timestamp = (int)(ecore_time_get() * 1000.0);
+ ev->timestamp = e_util_timestamp_get();
ev->x = x;
ev->y = y;
ev->root.x = x;
if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Button)))) return;
ev->buttons = 1;
- ev->timestamp = (int)(ecore_time_get() * 1000.0);
+ ev->timestamp = e_util_timestamp_get();
ev->x = x;
ev->y = y;
ev->root.x = x;
if (!(ev = calloc(1, sizeof(Ecore_Event_Mouse_Button)))) return;
ev->buttons = 1;
- ev->timestamp = (int)(ecore_time_get() * 1000.0);
+ ev->timestamp = e_util_timestamp_get();
ev->x = x;
ev->y = y;
ev->root.x = x;
ev->root_window = e_comp->ee_win;
ev->event_window = e_comp->ee_win;
- ev->timestamp= (int)(ecore_time_get() * 1000.0);
+ ev->timestamp= e_util_timestamp_get();
ev->modifiers = 0;
ev->same_screen = 1;
ev_move->multi.y = ev_btn->multi.y;
ev_move->multi.root.x = ev_btn->multi.root.x;
ev_move->multi.root.y = ev_btn->multi.root.y;
- ev_move->timestamp = (int)(ecore_time_get() * 1000);
+ ev_move->timestamp = e_util_timestamp_get();
ev_move->multi.radius = MAGIC_NUMBER + 10.0;
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev_move, NULL, NULL);
}
cov->flick_gesture.object_needs_scroll_y_delta = 0;
}
- cov->flick_gesture.ev_first_down->timestamp = (int)(ecore_time_get() * 1000);
+ cov->flick_gesture.ev_first_down->timestamp = e_util_timestamp_get();
cov->flick_gesture.ev_first_down->multi.radius += MAGIC_NUMBER;
_emit_mouse_move_event(cov->flick_gesture.ev_first_down);
ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_DOWN, cov->flick_gesture.ev_first_down, NULL, NULL);