diff options
author | Rafael Antognolli <rafael.antognolli@intel.com> | 2013-11-28 17:53:42 -0200 |
---|---|---|
committer | Rafael Antognolli <rafael.antognolli@intel.com> | 2013-11-29 18:05:06 -0200 |
commit | 2c95c5ee1d470650480781fe72518ef67263010d (patch) | |
tree | 93e7d81495fe3ca9e37d65fff4f126c6f641ae95 | |
parent | b92fc57c5acd039d97979334dcdc0847f09e568a (diff) |
ecore/wayland: Get the touch up event position from the down_info.
down_info is a struct that stores some information about the current
pressed touch events. It should be used for that specific touch point,
instead of the generic input info, when sending a mouse_up event.
-rw-r--r-- | src/lib/ecore_wayland/ecore_wl_input.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index a9b7ac63c..466189150 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -1357,8 +1357,6 @@ _ecore_wl_input_mouse_up_send(Ecore_Wl_Input *input, Ecore_Wl_Window *win, int d ev->buttons = button; ev->timestamp = timestamp; - ev->x = input->sx; - ev->y = input->sy; ev->root.x = input->sx; ev->root.y = input->sy; ev->modifiers = input->modifiers; @@ -1372,11 +1370,15 @@ _ecore_wl_input_mouse_up_send(Ecore_Wl_Input *input, Ecore_Wl_Window *win, int d ev->double_click = 1; if (down_info->did_triple) ev->triple_click = 1; + ev->x = down_info->sx; + ev->y = down_info->sy; ev->multi.x = down_info->sx; ev->multi.y = down_info->sy; } else { + ev->x = input->sx; + ev->y = input->sy; ev->multi.x = input->sx; ev->multi.y = input->sy; } |