fix cursor setting to only set if currently visible
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 21 Apr 2014 03:41:59 +0000 (12:41 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 21 Apr 2014 03:41:59 +0000 (12:41 +0900)
this should fix D715

legacy/elementary/src/lib/els_cursor.c

index da74f10..1119454 100644 (file)
@@ -190,7 +190,8 @@ _elm_cursor_set_hot_spots(Elm_Cursor *cur)
    str = edje_object_data_get(cur->obj, "hot_y");
    if (str) cur->hot_y = atoi(str);
    
-   if ((prev_hot_x != cur->hot_x) || (prev_hot_y != cur->hot_y))
+   if ((cur->visible) &&
+       ((prev_hot_x != cur->hot_x) || (prev_hot_y != cur->hot_y)))
      ecore_evas_object_cursor_set(cur->ee, cur->obj, ELM_OBJECT_LAYER_CURSOR,
                                   cur->hot_x, cur->hot_y);
 }