fix cursor setting to only set if currently visible

this should fix D715
This commit is contained in:
Carsten Haitzler 2014-04-21 12:41:59 +09:00
parent 9d55fab418
commit 0312fd5b3d
1 changed files with 2 additions and 1 deletions

View 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);
}