Un-kludged Decorator::GetFootprint. Much more elegant now. :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4732 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -436,10 +436,14 @@ WinBorder* Screen::GetWindowAt( BPoint pt ){
|
||||
{
|
||||
if(child->_hidden)
|
||||
continue;
|
||||
wb = dynamic_cast<WinBorder*>( child );
|
||||
if (wb)
|
||||
if(wb->GetDecorator()->GetFootprint()->Contains(pt))
|
||||
wb = dynamic_cast<WinBorder*>(child);
|
||||
if(wb)
|
||||
{
|
||||
BRegion reg;
|
||||
wb->GetDecorator()->GetFootprint(®);
|
||||
if(reg.Contains(pt))
|
||||
return wb;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user