forked from enlightenment/enlightenment
set ON_HOLD flag when triggering gadget mouse buttion actions
allow detection that this event is being consumed
This commit is contained in:
parent
79b24ea884
commit
491b18b920
|
@ -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 (ev->button != 3) return;
|
||||||
if(!pager_config) return;
|
if(!pager_config) return;
|
||||||
if (cfg_dialog) return;
|
if (cfg_dialog) return;
|
||||||
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
e_gadget_configure(inst->o_pager);
|
e_gadget_configure(inst->o_pager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
Evas_Event_Mouse_Down *ev = event;
|
||||||
|
|
||||||
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
|
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
|
||||||
|
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
|
||||||
if (ev->button == 1)
|
if (ev->button == 1)
|
||||||
{
|
{
|
||||||
if (inst->popup) elm_ctxpopup_dismiss(inst->popup);
|
if (inst->popup) elm_ctxpopup_dismiss(inst->popup);
|
||||||
|
|
Loading…
Reference in New Issue