ensure flag to preserve gadget editor is unset after setup

the first click on the desktop should always dismiss the editor if
a gadget is not being dragged
This commit is contained in:
Mike Blumenkrantz 2017-06-23 17:41:39 -04:00
parent 1b15a85d74
commit 97c3db5ab1
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,7 @@ typedef struct Gadget_Item
static Eina_List *desktop_handlers;
static Evas_Object *desktop_rect;
static Evas_Object *desktop_editor;
static Eina_Bool added = 1;
static Eina_Bool added;
static Evas_Object *pointer_site;
static Eina_List *handlers;
@ -2153,6 +2153,7 @@ e_gadget_editor_add(Evas_Object *parent, Evas_Object *site)
evas_object_data_set(list, "__gadget_items", items);
evas_object_event_callback_add(list, EVAS_CALLBACK_DEL, _editor_del, items);
elm_list_go(list);
added = 0;
return list;
}