if (!cur->use_engine)
{
if (!cur->obj)
- _elm_cursor_obj_add(cur->eventarea, cur);
+ _elm_cursor_obj_add(cur->owner, cur);
if (cur->obj)
ecore_evas_object_cursor_set(cur->ee, cur->obj,
ELM_OBJECT_LAYER_CURSOR, cur->hot_x,
INF("Using only engine cursors");
cur->use_engine = EINA_TRUE;
}
- else if (_elm_cursor_obj_add(cur->eventarea, cur))
+ else if (_elm_cursor_obj_add(cur->owner, cur))
{
_elm_cursor_set_hot_spots(cur);
cur->use_engine = EINA_FALSE;
if (!cur->obj)
{
- if (!_elm_cursor_obj_add(obj, cur))
+ if (!_elm_cursor_obj_add(cur->owner, cur))
ERR("Could not create cursor object");
else
_elm_cursor_set_hot_spots(cur);