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
This commit is contained in:
Derek Foreman 2019-01-18 12:35:26 -05:00 committed by Christopher Michael
parent 965cb9d28d
commit ec910c5bb9
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{