summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-11-28 17:53:42 -0200
committerRafael Antognolli <rafael.antognolli@intel.com>2013-11-29 18:05:06 -0200
commit2c95c5ee1d470650480781fe72518ef67263010d (patch)
tree93e7d81495fe3ca9e37d65fff4f126c6f641ae95 /src/lib/ecore_wayland
parentb92fc57c5acd039d97979334dcdc0847f09e568a (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.
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c6
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 a9b7ac63c2..4661891500 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
1357 ev->buttons = button; 1357 ev->buttons = button;
1358 1358
1359 ev->timestamp = timestamp; 1359 ev->timestamp = timestamp;
1360 ev->x = input->sx;
1361 ev->y = input->sy;
1362 ev->root.x = input->sx; 1360 ev->root.x = input->sx;
1363 ev->root.y = input->sy; 1361 ev->root.y = input->sy;
1364 ev->modifiers = input->modifiers; 1362 ev->modifiers = input->modifiers;
@@ -1372,11 +1370,15 @@ _ecore_wl_input_mouse_up_send(Ecore_Wl_Input *input, Ecore_Wl_Window *win, int d
1372 ev->double_click = 1; 1370 ev->double_click = 1;
1373 if (down_info->did_triple) 1371 if (down_info->did_triple)
1374 ev->triple_click = 1; 1372 ev->triple_click = 1;
1373 ev->x = down_info->sx;
1374 ev->y = down_info->sy;
1375 ev->multi.x = down_info->sx; 1375 ev->multi.x = down_info->sx;
1376 ev->multi.y = down_info->sy; 1376 ev->multi.y = down_info->sy;
1377 } 1377 }
1378 else 1378 else
1379 { 1379 {
1380 ev->x = input->sx;
1381 ev->y = input->sy;
1380 ev->multi.x = input->sx; 1382 ev->multi.x = input->sx;
1381 ev->multi.y = input->sy; 1383 ev->multi.y = input->sy;
1382 } 1384 }