ecore_wl2_input: do not send pointer enter about all of touch down
authorJengHyun Kang <jhyuni.kang@samsung.com>
Thu, 7 Dec 2017 04:49:00 +0000 (13:49 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 12:47:43 +0000 (21:47 +0900)
Change-Id: I2e14b59daa5934bc654284146a43c63fd61ace2e

src/lib/ecore_wl2/ecore_wl2_input.c

index c00d6df..8939213 100644 (file)
@@ -1545,13 +1545,26 @@ _touch_cb_down(void *data, struct wl_touch *touch EINA_UNUSED, unsigned int seri
    _ecore_wl2_input_touch_axis_process(input, id);
    //
 
-   _pointer_cb_enter(data, NULL, serial, surface, x, y);
+   // TIZEN_ONLY(20171207): do not send pointer enter about all of touch down
+   #if 0
+    _pointer_cb_enter(data, NULL, serial, surface, x, y);
+   #else
+
+   input->grab.count++;
 
    if ((!input->grab.window) && (input->focus.touch))
      {
+        _pointer_cb_enter(data, NULL, serial, surface, x, y);
         _ecore_wl2_input_grab(input, input->focus.touch, BTN_LEFT);
         input->grab.timestamp = timestamp;
      }
+   else
+     {
+        input->pointer.sx = wl_fixed_to_double(x);
+        input->pointer.sy = wl_fixed_to_double(y);
+     }
+   #endif
+   //
 
 // TIZEN_ONLY(20171107): always send move event when touch down event is occurred
    _ecore_wl2_input_mouse_move_send(input, input->focus.touch, id);