billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=7de97c0007e697682512f02f0e0b1912ee666fb0

commit 7de97c0007e697682512f02f0e0b1912ee666fb0
Author: Boris Faure <[email protected]>
Date:   Sun Aug 3 21:05:03 2014 +0200

    don't waste cpu mouseover when the mouse is not moving. Closes T1457
    
    _termio_link_find() is the real culprit here but it's not yet its time to
    get rewritten.
---
 src/bin/termio.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index 6177c73..8fbd973 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -715,7 +715,7 @@ static Eina_Bool
 _smart_mouseover_delay(void *data)
 {
    Termio *sd = evas_object_smart_data_get(data);
-   
+
    EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EINA_FALSE);
    sd->mouseover_delay = NULL;
    _smart_mouseover_apply(data);
@@ -1624,8 +1624,11 @@ _smart_apply(Evas_Object *obj)
      }
    else
      evas_object_hide(sd->sel.theme);
-   if (sd->mouseover_delay) ecore_timer_del(sd->mouseover_delay);
-   sd->mouseover_delay = ecore_timer_add(0.05, _smart_mouseover_delay, obj);
+   if (sd->mouseover_delay)
+     {
+       ecore_timer_del(sd->mouseover_delay);
+       sd->mouseover_delay = ecore_timer_add(0.05, _smart_mouseover_delay, 
obj);
+     }
    miniview_redraw(term_miniview_get(sd->term));
 }
 

-- 


Reply via email to