if(Container *cont=dynamic_cast<Container *>(wdg))
{
const Geometry &cgeom=wdg->get_geometry();
- return cont->get_descendant_at(x-cgeom.x, y-cgeom.y);
+ Widget *wdg2=cont->get_descendant_at(x-cgeom.x, y-cgeom.y);
+ if(wdg2)
+ return wdg2;
}
return wdg;
}