jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=85110c7dd9b58b8e991663b4f56b7cb1b31caea7

commit 85110c7dd9b58b8e991663b4f56b7cb1b31caea7
Author: Jean Guyomarc'h <j...@guyomarch.bzh>
Date:   Tue Mar 7 22:16:24 2017 +0100

    ecore_evas: process mouse move even when there is no cursor
---
 src/lib/ecore_evas/ecore_evas.c | 44 +++++++++++++++++++++--------------------
 1 file changed, 23 insertions(+), 21 deletions(-)

diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c
index c560d5c..8b53aab 100644
--- a/src/lib/ecore_evas/ecore_evas.c
+++ b/src/lib/ecore_evas/ecore_evas.c
@@ -3183,28 +3183,30 @@ _ecore_evas_mouse_move_process_internal(Ecore_Evas *ee,
    if (!pointer)
      pointer = evas_default_device_get(ee->evas, EFL_INPUT_DEVICE_CLASS_MOUSE);
    cursor = eina_hash_find(ee->prop.cursors, &pointer);
-   EINA_SAFETY_ON_NULL_RETURN(cursor);
-   cursor->pos_x = x;
-   cursor->pos_y = y;
-   if (cursor->object)
+   if (cursor)
      {
-        evas_object_show(cursor->object);
-        if (ee->rotation == 0)
-          evas_object_move(cursor->object,
-                           x - fx - cursor->hot.x,
-                           y - fy - cursor->hot.y);
-        else if (ee->rotation == 90)
-          evas_object_move(cursor->object,
-                           ee->h + fw - y - fx - 1 - cursor->hot.x,
-                           x - fy - cursor->hot.y);
-        else if (ee->rotation == 180)
-          evas_object_move(cursor->object,
-                           ee->w + fw - x - fx - 1 - cursor->hot.x,
-                           ee->h + fh - y - fy - 1 - cursor->hot.y);
-        else if (ee->rotation == 270)
-          evas_object_move(cursor->object,
-                           y - fx - cursor->hot.x,
-                           ee->w + fh - x - fy - 1 - cursor->hot.y);
+        cursor->pos_x = x;
+        cursor->pos_y = y;
+        if (cursor->object)
+          {
+             evas_object_show(cursor->object);
+             if (ee->rotation == 0)
+               evas_object_move(cursor->object,
+                                x - fx - cursor->hot.x,
+                                y - fy - cursor->hot.y);
+             else if (ee->rotation == 90)
+               evas_object_move(cursor->object,
+                                ee->h + fw - y - fx - 1 - cursor->hot.x,
+                                x - fy - cursor->hot.y);
+             else if (ee->rotation == 180)
+               evas_object_move(cursor->object,
+                                ee->w + fw - x - fx - 1 - cursor->hot.x,
+                                ee->h + fh - y - fy - 1 - cursor->hot.y);
+             else if (ee->rotation == 270)
+               evas_object_move(cursor->object,
+                                y - fx - cursor->hot.x,
+                                ee->w + fh - x - fy - 1 - cursor->hot.y);
+          }
      }
 
    if (!feed) return;

-- 


Reply via email to