From 1b00894c586a7d91d9f2c7e56d5aab536d207841 Mon Sep 17 00:00:00 2001 From: EunMi Lee Date: Thu, 10 Nov 2011 06:25:56 +0000 Subject: [PATCH] From: EunMi Lee Subject: [E-devel] [Patch][Evas] Fix wrong location of _evas_touch_point_remove() I have a small patch to fix the wrong location of _evas_touch_point_remove(). _evas_touch_point_remove() should be called in the evas_event_feed_mouse_up(), but it is called in the evas_event_feed_mouse_cancel() in the current code. Would you apply attached patch? SVN revision: 65005 --- legacy/evas/src/lib/canvas/evas_events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/legacy/evas/src/lib/canvas/evas_events.c b/legacy/evas/src/lib/canvas/evas_events.c index 1243d67e62..4b61b264d6 100644 --- a/legacy/evas/src/lib/canvas/evas_events.c +++ b/legacy/evas/src/lib/canvas/evas_events.c @@ -442,7 +442,9 @@ evas_event_feed_mouse_up(Evas *e, int b, Evas_Button_Flags flags, unsigned int t ERR("BUG? e->pointer.mouse_grabbed (=%d) < 0!", e->pointer.mouse_grabbed); } - + /* remove released touch point from the touch point list */ + _evas_touch_point_remove(e, 0); + _evas_unwalk(e); } @@ -463,8 +465,6 @@ evas_event_feed_mouse_cancel(Evas *e, unsigned int timestamp, const void *data) if ((e->pointer.button & (1 << i))) evas_event_feed_mouse_up(e, i + 1, 0, timestamp, data); } - /* remove released touch point from the touch point list */ - _evas_touch_point_remove(e, 0); _evas_unwalk(e); }