aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJi-Youn Park <jy0703.park@samsung.com>2015-06-12 23:10:07 +0900
committerJi-Youn Park <jy0703.park@samsung.com>2015-06-12 23:10:07 +0900
commit02faffe14bd86b610d3b8cfd32928e8d1c4158dc (patch)
tree3c395ad29b8d9c53034ec282b5a772f7e66b6f06
parentevas/vg : Fixed issue regarding geometry change of vg object. (diff)
downloadefl-02faffe14bd86b610d3b8cfd32928e8d1c4158dc.tar.gz
evas_event: evas_event_feed_mouse_cancel set EVAS_EVENT_FLAG_ON_HOLD
Evas_event_feed_mouse_cancel generates mouse up event if it meets situation witch mouse should be canceled. but app also have to know this information. I add cancel information into evas up event generated by cancel function. @fix
-rw-r--r--src/lib/evas/canvas/evas_events.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c
index b6ef1ef823..cc1769c1f4 100644
--- a/src/lib/evas/canvas/evas_events.c
+++ b/src/lib/evas/canvas/evas_events.c
@@ -1332,11 +1332,16 @@ _evas_canvas_event_feed_mouse_cancel(Eo *eo_e, Evas_Public_Data *e, unsigned int
{
Evas_Coord_Touch_Point *point;
Eina_List *l, *ll;
+ Evas_Event_Flags flags;
int i;
if (e->is_frozen) return;
_evas_walk(e);
+
+ flags = evas_event_default_flags_get(eo_e);
+ evas_event_default_flags_set(eo_e, (flags | EVAS_EVENT_FLAG_ON_HOLD));
+
for (i = 0; i < 32; i++)
{
if ((e->pointer.button & (1 << i)))
@@ -1349,6 +1354,7 @@ _evas_canvas_event_feed_mouse_cancel(Eo *eo_e, Evas_Public_Data *e, unsigned int
evas_event_feed_multi_up(eo_e, point->id, point->x, point->y,
0, 0, 0, 0, 0, 0, 0, 0, timestamp, data);
}
+ evas_event_default_flags_set(eo_e, flags);
_evas_unwalk(e);
}