// AllowOverlap mode (rarely used) requires previous frame HoveredId to be null or to match. This allows using patterns where a later submitted widget overlaps a previous one.
if(item_flags&ImGuiItemflags_AllowOverlap)
{
if(hovered&&g.HoveredIdPreviousFrame!=id)
hovered=false;
if(g.HoveredId==id)// FIXME: Added this to match legacy SetItemAllowOverlap(). Investigate precise side-effects of using (hovered==true) instead?