e menus - fix ungrabbing to ungrab when no active menus are visible

if there are active menus that are not visible the gab may stay- this
fixes that to release that grab when no menus are visible anymore.

@fix
This commit is contained in:
Carsten Haitzler 2018-10-18 16:58:51 +01:00
parent 17ff2a3caf
commit 2bf682ff5f
1 changed files with 6 additions and 1 deletions

View File

@ -1102,6 +1102,7 @@ e_menu_idler_before(void)
/* level state machine */ /* level state machine */
Eina_List *l, *removals = NULL, *tmp; Eina_List *l, *removals = NULL, *tmp;
E_Menu *m; E_Menu *m;
int active_count = 0;
if (pending_feed) if (pending_feed)
{ {
@ -1207,7 +1208,11 @@ e_menu_idler_before(void)
/* del refcount to all menus we worked with */ /* del refcount to all menus we worked with */
_e_menu_list_free_unref(tmp); _e_menu_list_free_unref(tmp);
if (!_e_active_menus) EINA_LIST_FOREACH(_e_active_menus, l, m)
{
if (m->active) active_count++;
}
if (!active_count)
{ {
if (_e_menu_win == e_comp->ee_win) if (_e_menu_win == e_comp->ee_win)
{ {