Fix timestamp overflow issue 52/290052/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 17 Mar 2023 13:44:59 +0000 (22:44 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 22 Mar 2023 07:44:55 +0000 (16:44 +0900)
Change-Id: Iececab7db17e4a51314162feffc55e5594443208
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/e_mod_gesture_events.c

index b7acf10..968db5b 100644 (file)
@@ -294,7 +294,7 @@ _e_gesture_send_back_key(Eina_Bool pressed)
    ev->key = (char *)eina_stringshare_add("XF86Back");
    ev->keyname = (char *)eina_stringshare_add(ev->key);
    ev->compose = (char *)eina_stringshare_add(ev->key);
-   ev->timestamp = (int)(ecore_time_get()*1000);
+   ev->timestamp = e_util_timestamp_get();
    ev->same_screen = 1;
    ev->keycode = conf->edge_swipe.back_key;
    ev->dev = ecore_device_ref(gesture->device.kbd_device);
@@ -320,7 +320,7 @@ _e_gesture_send_touch_cancel(void)
    ev_cancel = E_NEW(Ecore_Event_Mouse_Button, 1);
    EINA_SAFETY_ON_NULL_RETURN(ev_cancel);
 
-   ev_cancel->timestamp = (int)(ecore_time_get()*1000);
+   ev_cancel->timestamp = e_util_timestamp_get();
    ev_cancel->same_screen = 1;
 
    ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_CANCEL, ev_cancel, NULL, NULL);
@@ -1743,7 +1743,7 @@ _e_gesture_send_palm_cover(void)
    E_Gesture_Select_Surface *sdata;
    E_Event_Gesture_Palm_Cover *ev_palm_cover;
 
-   time = (int)(ecore_time_get()*1000);
+   time = e_util_timestamp_get();
 
    if (gesture->event_state == E_GESTURE_EVENT_STATE_KEEP)
      {