summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2018-02-15 18:36:00 +0000
committerAndy Williams <andy@andywilliams.me>2018-02-15 18:36:00 +0000
commit643a42988023c2954def5602a34fd38973773681 (patch)
treec26df7856b823ac3a58e4fd3636d2f77b5edd419
parent29e26b2a52785711ee3aba19573de30caa85f706 (diff)
downloadefl-643a42988023c2954def5602a34fd38973773681.tar.gz
elm_code: Fix issue where text selection menu did not show
-rw-r--r--src/lib/elementary/elm_code_widget.c10
1 files changed, 9 insertions, 1 deletions
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);
}