aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2018-02-15 18:36:00 +0000
committerAndy Williams <andy@andywilliams.me>2018-02-16 14:38:25 +0000
commit2aa580b073664f94198ce56fbb279f65c486a942 (patch)
tree0fda272d32ba43d9726c0d2c5aa42762b7b3010e
parenteolian: always print error and fail when name conflicts are detected (diff)
downloadefl-2aa580b073664f94198ce56fbb279f65c486a942.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 21abee7f78..edfba53872 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -1187,11 +1187,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);
}