forked from enlightenment/enlightenment
slight ibar dnd optimization when checking taskbar apps for drop site
This commit is contained in:
parent
7722b42ba8
commit
18c821adc3
|
@ -771,17 +771,12 @@ _ibar_icon_at_coord(IBar *b, Evas_Coord x, Evas_Coord y)
|
|||
{
|
||||
Evas_Coord dx, dy, dw, dh;
|
||||
|
||||
/* block drops in the non-order section */
|
||||
if (ic->not_in_order) continue;
|
||||
evas_object_geometry_get(ic->o_holder, &dx, &dy, &dw, &dh);
|
||||
if (E_INSIDE(x, y, dx, dy, dw, dh))
|
||||
{
|
||||
if (ic->not_in_order)
|
||||
{
|
||||
/* block drops in the non-order section */
|
||||
return NULL;
|
||||
}
|
||||
return ic;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue