ecore_evas: Fix mouse event in inlined windows
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 16 Feb 2017 12:51:47 +0000 (21:51 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 16 Feb 2017 12:51:47 +0000 (21:51 +0900)
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

src/lib/ecore_evas/ecore_evas_buffer.c

index 74bcdd7..21d03ec 100644 (file)
@@ -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);