evas_device: send a hw device for pointer events
authorJengHyun Kang <jhyuni.kang@samsung.com>
Wed, 20 Dec 2017 11:02:43 +0000 (20:02 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Wed, 27 Dec 2017 08:58:44 +0000 (17:58 +0900)
Change-Id: I95c9b9bed07437a28f5ccb1f26b9e2f36d88d415

src/lib/ecore_evas/ecore_evas.c
src/lib/evas/Evas_Common.h
src/lib/evas/canvas/evas_device.c

index 5dd9eb3..e64bf01 100644 (file)
@@ -3734,6 +3734,8 @@ _ecore_evas_mouse_move_process_with_multi_info_internal(Ecore_Evas *ee,
 
    evas_output_framespace_get(ee->evas, &fx, &fy, &fw, &fh);
 
+   if (!pointer) pointer = evas_device_top_get(ee->evas);
+
    if (pointer)
      {
         if (efl_input_device_type_get(pointer) != EFL_INPUT_DEVICE_TYPE_SEAT)
@@ -3847,6 +3849,8 @@ _ecore_evas_mouse_move_process_with_multi_info_internal2(Ecore_Evas *ee,
 
    evas_output_framespace_get(ee->evas, &fx, &fy, &fw, &fh);
 
+   if (!pointer) pointer = evas_device_top_get(ee->evas);
+
    if (pointer)
      {
         if (efl_input_device_type_get(pointer) != EFL_INPUT_DEVICE_TYPE_SEAT)
index 1060bc1..b761d4f 100644 (file)
@@ -1218,6 +1218,10 @@ EAPI void evas_device_emulation_source_set(Evas_Device *dev, Evas_Device *src);
  */
 EAPI const Evas_Device *evas_device_emulation_source_get(const Evas_Device *dev);
 
+//TIZEN_ONLY(20171220): send a hw device for pointer events
+EAPI Evas_Device *evas_device_top_get(const Evas *eo_e);
+//
+
 /**
  * @}
  */
index 23eb01d..e4b61d3 100644 (file)
@@ -516,3 +516,11 @@ _evas_device_top_get(const Evas *eo_e)
    if (num < 1) return NULL;
    return eina_array_data_get(e->cur_device, num - 1);
 }
+
+//TIZEN_ONLY(20171220): send a hw device for pointer events
+EAPI Evas_Device *
+evas_device_top_get(const Evas *eo_e)
+{
+   return _evas_device_top_get(eo_e);
+}
+//