devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ec910c5bb9dd23e266845a7dfcc7c9a8dcada1c8

commit ec910c5bb9dd23e266845a7dfcc7c9a8dcada1c8
Author: Derek Foreman <derek.foreman.sams...@gmail.com>
Date:   Fri Jan 18 12:35:26 2019 -0500

    elm_code: Don't update selection if it didn't change
    
    Summary:
    Mouse motion can cause multiple worthless selection updates with no
    change to row or column.  Discard updates that don't really update.
    
    ref T6209
    Depends on D7692
    
    Reviewers: devilhorns
    
    Reviewed By: devilhorns
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Maniphest Tasks: T6209
    
    Differential Revision: https://phab.enlightenment.org/D7693
---
 src/lib/elementary/elm_code_widget_selection.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elementary/elm_code_widget_selection.c 
b/src/lib/elementary/elm_code_widget_selection.c
index 31476ca4ad..59a5615bd4 100644
--- a/src/lib/elementary/elm_code_widget_selection.c
+++ b/src/lib/elementary/elm_code_widget_selection.c
@@ -74,6 +74,9 @@ elm_code_widget_selection_end(Evas_Object *widget,
 
    pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
 
+   if (pd->selection && (pd->selection->end_line == line) &&
+       (pd->selection->end_col == col)) return;
+
    _elm_code_widget_selection_limit(widget, pd, &line, &col);
    if (!pd->selection)
      {

-- 


Reply via email to