From 16864aa2c44290c766f19bb35265a0951b93af32 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 23 Sep 2015 11:45:17 -0400 Subject: [PATCH] ecore-wl2: Send mouse button down/up events when we get a wayland pointer button event Signed-off-by: Chris Michael --- src/lib/ecore_wl2/ecore_wl2_input.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 568a975ea2..adeddbe94e 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);