raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=6ea8622ecc4bd6aa0287a7638a9f4a4190fafc38

commit 6ea8622ecc4bd6aa0287a7638a9f4a4190fafc38
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Oct 13 15:55:43 2013 +0900

    make url link disappear on focus change ANd ensure it stays invisible then
---
 src/bin/termio.c | 6 +++---
 1 file 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)
    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

-- 


Reply via email to