forked from enlightenment/enlightenment
Launcher: fix the gadget menu icon search
This was obviously wrong, it was comparing the geometry of the whole gadget instead of the icon one. Now the menu doesn't always act on the first icon ;)
This commit is contained in:
parent
79ff5ae53b
commit
3e4a34d03c
|
@ -517,7 +517,7 @@ _bar_gadget_menu_populate(Evas_Object *g, E_Menu *m)
|
|||
{
|
||||
Evas_Coord x, y, w, h;
|
||||
|
||||
evas_object_geometry_get(g, &x, &y, &w, &h);
|
||||
evas_object_geometry_get(ic->o_icon, &x, &y, &w, &h);
|
||||
if (E_INSIDE(px, py, x, y, w, h)) break;
|
||||
ic = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue