aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-22 16:18:46 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-22 16:21:16 -0500
commit7156ed8c38804ca479737d7e856b30238d94ce35 (patch)
tree2b472a516770444d3352d8ec32045df610ed51aa
parentdo not add gadget editor pointer site to editor del_list (diff)
downloadenlightenment-7156ed8c38804ca479737d7e856b30238d94ce35.tar.gz
always unset pass_events on desktop editor when it is shown
fixes some cases where the editor could not be interacted with after it was hidden during gadget placement
-rw-r--r--src/bin/e_gadget.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/e_gadget.c b/src/bin/e_gadget.c
index 6643ccc16..fa6b8c0d5 100644
--- a/src/bin/e_gadget.c
+++ b/src/bin/e_gadget.c
@@ -2970,6 +2970,13 @@ e_gadget_editor_add(Evas_Object *parent, Evas_Object *site)
return list;
}
+static void
+_editor_show(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
+{
+ if (obj == desktop_editor)
+ evas_object_pass_events_set(desktop_editor, 0);
+}
+
E_API Evas_Object *
e_gadget_site_edit(Evas_Object *site)
{
@@ -3012,6 +3019,7 @@ e_gadget_site_edit(Evas_Object *site)
comp_object = e_comp_object_util_add(popup, E_COMP_OBJECT_TYPE_NONE);
evas_object_layer_set(comp_object, E_LAYER_POPUP);
evas_object_show(comp_object);
+ evas_object_event_callback_add(comp_object, EVAS_CALLBACK_SHOW, _editor_show, NULL);
evas_object_resize(comp_object, zone->w / 2, zone->h / 2);
e_comp_object_util_center_on_zone(comp_object, zone);