From 7a06a6b661e3fd74ebbef9acb3d60919a0f8b894 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 17 Oct 2016 12:44:32 -0400 Subject: [PATCH] trigger bryce menus from right click if event has not been consumed --- src/bin/e_bryce.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bin/e_bryce.c b/src/bin/e_bryce.c index bb42a06c2..d441646a6 100644 --- a/src/bin/e_bryce.c +++ b/src/bin/e_bryce.c @@ -60,6 +60,9 @@ static E_Action *resize_act; static E_Action *menu_act; static Eina_List *handlers; + +static void _bryce_act_menu_job(void *data); + #define BRYCE_GET(obj) \ Bryce *b; \ b = evas_object_data_get((obj), "__bryce"); \ @@ -543,7 +546,12 @@ _bryce_mouse_down_post(void *data, Evas *e EINA_UNUSED) ev = b->event_info; b->event_info = NULL; if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE; - return !!e_bindings_mouse_down_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev); + if (e_bindings_mouse_down_evas_event_handle(E_BINDING_CONTEXT_ANY, b->e_obj_inherit, ev)) + return EINA_TRUE; + if (ev->button != 3) return EINA_FALSE; + b->last_timestamp = ev->timestamp; + _bryce_act_menu_job(b); + return EINA_TRUE; } static void