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>
This commit is contained in:
Chris Michael 2015-09-23 11:45:17 -04:00
parent 32838d1db4
commit 16864aa2c4
1 changed files with 4 additions and 6 deletions

View 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);