aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-23 11:45:17 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit16864aa2c44290c766f19bb35265a0951b93af32 (patch)
tree6b76bf5ce87fbf30afa5d7e8d60538f83569fd8b /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add internal functions for sending mouse button down/up (diff)
downloadefl-16864aa2c44290c766f19bb35265a0951b93af32.tar.gz
ecore-wl2: Send mouse button down/up events when we get a wayland
pointer button event Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c10
1 files 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);