summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-13 15:55:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-13 15:55:43 +0900
commit6ea8622ecc4bd6aa0287a7638a9f4a4190fafc38 (patch)
tree9c7cfd95bb3f4dd1f6053f4cc11b7e94ccda44f9
parentcc0f075b2742b767c63a29fb34d7137288953976 (diff)
make url link disappear on focus change ANd ensure it stays invisible then
-rw-r--r--src/bin/termio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index ebfe46b..8ab7027 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -572,13 +572,13 @@ _smart_mouseover_apply(Evas_Object *obj)
572 Termio *sd = evas_object_smart_data_get(obj); 572 Termio *sd = evas_object_smart_data_get(obj);
573 573
574 if (!sd) return; 574 if (!sd) return;
575 if ((sd->mouse.cx < 0) || (sd->mouse.cy < 0)) 575 if ((sd->mouse.cx < 0) || (sd->mouse.cy < 0) ||
576 (sd->link.suspend) || (!evas_object_focus_get(obj)))
576 { 577 {
577 _remove_links(sd, obj); 578 _remove_links(sd, obj);
578 return; 579 return;
579 } 580 }
580 581
581
582 s = _termio_link_find(obj, sd->mouse.cx, sd->mouse.cy, 582 s = _termio_link_find(obj, sd->mouse.cx, sd->mouse.cy,
583 &x1, &y1, &x2, &y2); 583 &x1, &y1, &x2, &y2);
584 if (!s) 584 if (!s)
@@ -3182,7 +3182,6 @@ _smart_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
3182 sd->mouse.cx = -1; 3182 sd->mouse.cx = -1;
3183 sd->mouse.cy = -1; 3183 sd->mouse.cy = -1;
3184 sd->link.suspend = EINA_FALSE; 3184 sd->link.suspend = EINA_FALSE;
3185 _remove_links(sd, obj);
3186 } 3185 }
3187 else 3186 else
3188 { 3187 {
@@ -3192,6 +3191,7 @@ _smart_cb_mouse_out(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
3192 sd->mouse.cx = cx; 3191 sd->mouse.cx = cx;
3193 sd->mouse.cy = cy; 3192 sd->mouse.cy = cy;
3194 } 3193 }
3194 _remove_links(sd, obj);
3195} 3195}
3196 3196
3197static void 3197static void