ajwillia-ms pushed a commit to branch efl-1.20.

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

commit 643a42988023c2954def5602a34fd38973773681
Author: Andy Williams <[email protected]>
Date:   Thu Feb 15 18:36:00 2018 +0000

    elm_code: Fix issue where text selection menu did not show
---
 src/lib/elementary/elm_code_widget.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_code_widget.c 
b/src/lib/elementary/elm_code_widget.c
index dab840ab4a..d419d444f9 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -1171,11 +1171,19 @@ _elm_code_widget_mouse_up_cb(void *data, Evas *e 
EINA_UNUSED, Evas_Object *obj E
 
 static void
 _elm_code_widget_scroller_clicked_cb(void *data, Evas *e EINA_UNUSED, 
Evas_Object *obj EINA_UNUSED,
-                                     void *event_info EINA_UNUSED)
+                                     void *event_info)
 {
    Elm_Code_Widget *widget;
+   Elm_Code_Widget_Data *pd;
+   Evas_Event_Mouse_Down *event;
 
    widget = (Elm_Code_Widget *)data;
+   pd = efl_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
+   event = (Evas_Event_Mouse_Down *)event_info;
+
+   if (_elm_code_widget_position_at_coordinates_get(widget, pd,
+         event->canvas.x, event->canvas.y, NULL, NULL))
+     return;
 
    elm_code_widget_selection_clear(widget);
 }

-- 


Reply via email to