make url link disappear on focus change ANd ensure it stays invisible then

This commit is contained in:
Carsten Haitzler 2013-10-13 15:55:43 +09:00
parent cc0f075b27
commit 6ea8622ecc
1 changed files with 3 additions and 3 deletions

View File

@ -572,13 +572,13 @@ _smart_mouseover_apply(Evas_Object *obj)
Termio *sd = evas_object_smart_data_get(obj);
if (!sd) return;
if ((sd->mouse.cx < 0) || (sd->mouse.cy < 0))
if ((sd->mouse.cx < 0) || (sd->mouse.cy < 0) ||
(sd->link.suspend) || (!evas_object_focus_get(obj)))
{
_remove_links(sd, obj);
return;
}
s = _termio_link_find(obj, sd->mouse.cx, sd->mouse.cy,
&x1, &y1, &x2, &y2);
if (!s)
@ -3182,7 +3182,6 @@ _smart_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
sd->mouse.cx = -1;
sd->mouse.cy = -1;
sd->link.suspend = EINA_FALSE;
_remove_links(sd, obj);
}
else
{
@ -3192,6 +3191,7 @@ _smart_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
sd->mouse.cx = cx;
sd->mouse.cy = cy;
}
_remove_links(sd, obj);
}
static void