forked from enlightenment/efl
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:
parent
32838d1db4
commit
16864aa2c4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue