ecore_wl2_input: do not generate duplicated mouse in events 09/211009/2
authorjeon <jhyuni.kang@samsung.com>
Mon, 29 Jul 2019 05:34:15 +0000 (14:34 +0900)
committerjeon <jhyuni.kang@samsung.com>
Mon, 29 Jul 2019 07:36:48 +0000 (16:36 +0900)
  - touch down call _pointer_cb_enter()
  - So touch down generate mouse in events twice when a mouse is connected
  - if mouse is connected, the server generate and send pointer_enter / leave events
    when touched window is changed.

Change-Id: I57c64188d62f02382c54ade8b4582664d3b666ee

src/lib/ecore_wl2/ecore_wl2_input.c

index 15dd2e2..f6d4c36 100644 (file)
@@ -1048,6 +1048,10 @@ _pointer_cb_enter(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned i
    window = _ecore_wl2_display_window_surface_find(input->display, surface);
    if (!window) return;
 
+   // TIZEN_ONLY(20190729): do not generate duplicated mouse in events
+   if (input->focus.pointer == window) return;
+   //
+
    // TIZEN_ONLY(20171207): add functions to set client's custom cursors
    window->pointer.device = input;
    //