forked from enlightenment/enlightenment
hide ibar menu if no clients exist for lone exe instance
This commit is contained in:
parent
f21400e209
commit
0b6b75939e
|
@ -1196,11 +1196,16 @@ _ibar_cb_icon_menu_img_del(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EIN
|
|||
if (!ic->menu) return; //who knows
|
||||
edje_object_part_box_remove(ic->menu->o_bg, "e.box", data);
|
||||
evas_object_del(data);
|
||||
if (eina_list_count(ic->exes) < 1)
|
||||
if (eina_list_count(ic->exes) <= 1)
|
||||
{
|
||||
evas_object_pass_events_set(ic->menu->o_bg, 1);
|
||||
edje_object_signal_emit(ic->menu->o_bg, "e,action,hide", "e");
|
||||
return;
|
||||
E_Exec_Instance *inst = eina_list_data_get(ic->exes);
|
||||
|
||||
if ((!inst) || (!inst->clients))
|
||||
{
|
||||
evas_object_pass_events_set(ic->menu->o_bg, 1);
|
||||
edje_object_signal_emit(ic->menu->o_bg, "e,action,hide", "e");
|
||||
return;
|
||||
}
|
||||
}
|
||||
edje_object_calc_force(ic->menu->o_bg);
|
||||
edje_object_size_min_calc(ic->menu->o_bg, &w, &h);
|
||||
|
|
Loading…
Reference in New Issue