Dear All, Hello.

There is a case that the Eina_List l; of Taps_Type would be NULL in
_tap_gesture_check_finish().
If the below calls in the callback of gesture layer for
ELM_GESTURE_N_DOUBLE_TAPS with ELM_GESTURE_STATE_END,
then the callback for ELM_GESTURE_N_DOUBLE_TAPS with
ELM_GESTURE_STATE_END is called once more because of the NULL.

- below -
static Evas_Event_Flags
double_tap_end_cb(void *data, void *event_info)
{
   ...
   evas_event_feed_mouse_move();
   evas_event_feed_mouse_down();
   evas_event_feed_mouse_up();
   ...
}

static void register_cbs()
{
   ...
   elm_gesture_layer_cb_set(gesture, ELM_GESTURE_N_DOUBLE_TAPS,
ELM_GESTURE_STATE_END, double_tap_end_cb, NULL);
   ...
}

Then, please review the patch and give any feedbacks. Thanks.

Sincerely,
Shinwoo Kim.

Attachment: elm.gesture.layer.tap.finish.check.patch
Description: Binary data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to