forked from enlightenment/efl
fix cursor setting to only set if currently visible
this should fix D715
This commit is contained in:
parent
9d55fab418
commit
0312fd5b3d
|
@ -190,7 +190,8 @@ _elm_cursor_set_hot_spots(Elm_Cursor *cur)
|
||||||
str = edje_object_data_get(cur->obj, "hot_y");
|
str = edje_object_data_get(cur->obj, "hot_y");
|
||||||
if (str) cur->hot_y = atoi(str);
|
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,
|
ecore_evas_object_cursor_set(cur->ee, cur->obj, ELM_OBJECT_LAYER_CURSOR,
|
||||||
cur->hot_x, cur->hot_y);
|
cur->hot_x, cur->hot_y);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue