make menu_show action pop the menu in automatically-calculated direction

This commit is contained in:
Mike Blumenkrantz 2017-08-04 16:23:39 -04:00
parent 541e33fc73
commit 5cfc3c846e
1 changed files with 2 additions and 2 deletions

View File

@ -1819,7 +1819,7 @@ ACT_FN_GO(menu_show, )
ecore_evas_pointer_xy_get(e_comp->ee, &x, &y);
e_menu_post_deactivate_callback_set(m, _e_actions_cb_menu_end, NULL);
e_menu_activate_mouse(m, zone, x, y, 1, 1,
E_MENU_POP_DIRECTION_DOWN, 0);
E_MENU_POP_DIRECTION_AUTO, 0);
}
}
}
@ -1844,7 +1844,7 @@ ACT_FN_GO_MOUSE(menu_show, )
y = ev->canvas.y;
e_menu_post_deactivate_callback_set(m, _e_actions_cb_menu_end, NULL);
e_menu_activate_mouse(m, zone, x, y, 1, 1,
E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
E_MENU_POP_DIRECTION_AUTO, ev->timestamp);
return EINA_TRUE;
}