ecore-wl2: Send mouse button down/up events when we get a wayland
authorChris Michael <cp.michael@samsung.com>
Wed, 23 Sep 2015 15:45:17 +0000 (11:45 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
pointer button event

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wl2/ecore_wl2_input.c

index 568a975..adeddbe 100644 (file)
@@ -331,16 +331,14 @@ _pointer_cb_button(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned
           }
 
         if (input->focus.pointer)
-          {
-             /* TODO: send mouse down event */
-          }
+          _ecore_wl2_input_mouse_down_send(input, input->focus.pointer,
+                                           0, button, timestamp);
      }
    else
      {
         if (input->focus.pointer)
-          {
-             /* TODO: send mouse up event */
-          }
+          _ecore_wl2_input_mouse_up_send(input, input->focus.pointer,
+                                         0, button, timestamp);
 
         if ((input->grab.window) && (input->grab.button == button))
           _ecore_wl2_input_ungrab(input);