set ON_HOLD flag when triggering gadget mouse buttion actions

allow detection that this event is being consumed
This commit is contained in:
Mike Blumenkrantz 2016-10-17 12:42:28 -04:00
parent 79b24ea884
commit 491b18b920
2 changed files with 2 additions and 0 deletions

View File

@ -837,6 +837,7 @@ _button_cb_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNU
if (ev->button != 3) return;
if(!pager_config) return;
if (cfg_dialog) return;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
e_gadget_configure(inst->o_pager);
}

View File

@ -264,6 +264,7 @@ _clock_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_U
Evas_Event_Mouse_Down *ev = event;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
if (ev->button == 1)
{
if (inst->popup) elm_ctxpopup_dismiss(inst->popup);