From: Jean-Philippe Andre Date: Thu, 16 Feb 2017 12:51:47 +0000 (+0900) Subject: ecore_evas: Fix mouse event in inlined windows X-Git-Tag: upstream/1.20.0~1978 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29416352d74b63b91d658b16f14e149246a4c0be;p=platform%2Fupstream%2Fefl.git ecore_evas: Fix mouse event in inlined windows This fixes the following ERR message: ERR<10589>:eina_safety /home/jpeg/e/core/efl/src/lib/ecore_evas/ecore_evas.c:3149 _ecore_evas_mouse_move_process_internal() safety check failed: cursor == NULL --- diff --git a/src/lib/ecore_evas/ecore_evas_buffer.c b/src/lib/ecore_evas/ecore_evas_buffer.c index 74bcdd7..21d03ec 100644 --- a/src/lib/ecore_evas/ecore_evas_buffer.c +++ b/src/lib/ecore_evas/ecore_evas_buffer.c @@ -725,6 +725,7 @@ ecore_evas_buffer_allocfunc_new(int w, int h, { ERR("Could not init the Ecore Evas cursors"); ecore_evas_free(ee); + return NULL; } evas_event_feed_mouse_in(ee->evas, 0, NULL); @@ -916,6 +917,12 @@ ecore_evas_object_image_new(Ecore_Evas *ee_target) evas_key_lock_add(ee->evas, "Num_Lock"); evas_key_lock_add(ee->evas, "Scroll_Lock"); + if (!_ecore_evas_cursors_init(ee)) + { + ERR("Could not init the Ecore Evas cursors"); + ecore_evas_free(ee); + return NULL; + } _ecore_evas_register_animators(ee); ee_target->sub_ecore_evas = eina_list_append(ee_target->sub_ecore_evas, ee);