From: Chris Michael Date: Wed, 23 Sep 2015 15:45:17 +0000 (-0400) Subject: ecore-wl2: Send mouse button down/up events when we get a wayland X-Git-Tag: upstream/1.20.0~8008^2~189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16864aa2c44290c766f19bb35265a0951b93af32;p=platform%2Fupstream%2Fefl.git ecore-wl2: Send mouse button down/up events when we get a wayland pointer button event Signed-off-by: Chris Michael --- diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 568a975..adeddbe 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -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);