flush events if they are not blocked 99/217899/1
authorjeon <jhyuni.kang@samsung.com>
Fri, 15 Nov 2019 09:39:17 +0000 (18:39 +0900)
committerjeon <jhyuni.kang@samsung.com>
Fri, 15 Nov 2019 09:39:17 +0000 (18:39 +0900)
Change-Id: I8b85cc82d125d6c206acd105dcdec5f35f892877

src/e_mod_gesture_events.c

index f4074cd..eb6d05a 100644 (file)
@@ -83,23 +83,28 @@ _e_gesture_event_flush(void)
      {
         if (data->type == ECORE_EVENT_MOUSE_BUTTON_DOWN)
           {
-             ecore_event_evas_mouse_button_down(NULL, ECORE_EVENT_MOUSE_BUTTON_DOWN, data->event);
+             if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+               ecore_event_evas_mouse_button_down(NULL, ECORE_EVENT_MOUSE_BUTTON_DOWN, data->event);
           }
         else if (data->type == ECORE_EVENT_MOUSE_BUTTON_UP)
           {
-             ecore_event_evas_mouse_button_up(NULL, ECORE_EVENT_MOUSE_BUTTON_UP, data->event);
+             if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+               ecore_event_evas_mouse_button_up(NULL, ECORE_EVENT_MOUSE_BUTTON_UP, data->event);
           }
         else if (data->type == ECORE_EVENT_MOUSE_MOVE)
           {
-             ecore_event_evas_mouse_move(NULL, ECORE_EVENT_MOUSE_MOVE, data->event);
+             if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_TOUCH))
+               ecore_event_evas_mouse_move(NULL, ECORE_EVENT_MOUSE_MOVE, data->event);
           }
         else if (data->type == ECORE_EVENT_KEY_DOWN)
           {
-             ecore_event_evas_key_down(NULL, ECORE_EVENT_KEY_DOWN, data->event);
+             if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_KEYBOARD))
+               ecore_event_evas_key_down(NULL, ECORE_EVENT_KEY_DOWN, data->event);
           }
         else if (data->type == ECORE_EVENT_KEY_UP)
           {
-             ecore_event_evas_key_up(NULL, ECORE_EVENT_KEY_UP, data->event);
+             if (!e_devicemgr_is_blocking_event(ECORE_DEVICE_CLASS_KEYBOARD))
+               ecore_event_evas_key_up(NULL, ECORE_EVENT_KEY_UP, data->event);
           }
         E_FREE(data->event);
         E_FREE(data);