Change-Id: I050179a6450b831507b8176b5c4362cf1cfd691a
}
/* hide and unset the existed ptr->o_ptr */
- if (ptr->o_ptr)
+ if (ptr->o_ptr && (ptr->o_ptr != obj))
{
ec = e_comp_object_client_get(ptr->o_ptr);
if ((ec) && (!e_object_is_del(E_OBJECT(ec))))
ec->override = 1; /* ignore the previous cursor_ec */
}
- if (ptr->o_ptr != obj)
- ptr->hwc = EINA_FALSE;
+ ptr->hwc = EINA_FALSE;
/* hide cursor object */
if (evas_object_visible_get(ptr->o_ptr))
ptr->hot.y = y;
/* if obj is not null, set the obj to ptr->o_ptr */
- if (obj)
+ if (obj && (ptr->o_ptr != obj))
{
ec = e_comp_object_client_get(obj);
if (ec && e_pixmap_usable_get(ec->pixmap))