modified a little how the _full region is built for the top_layer
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -590,8 +590,7 @@ uint32 Layer::CountChildren(void) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Layer::RebuildFullRegion( ){
|
void Layer::RebuildFullRegion( ){
|
||||||
|
if (_parent)
|
||||||
if (_parent && !IsTopLayer())
|
|
||||||
_full.Set( _parent->ConvertToTop( _frame ) );
|
_full.Set( _parent->ConvertToTop( _frame ) );
|
||||||
else
|
else
|
||||||
_full.Set( _frame );
|
_full.Set( _frame );
|
||||||
@@ -614,8 +613,11 @@ void Layer::RebuildFullRegion( ){
|
|||||||
_full.IntersectWith( clipToPicture );
|
_full.IntersectWith( clipToPicture );
|
||||||
}
|
}
|
||||||
|
|
||||||
if(IsTopLayer()){
|
if(IsTopLayer() && _serverwin){
|
||||||
_full.Exclude( _serverwin->fWinBorder->fDecFull );
|
if (_serverwin->fWinBorder->fDecorator){
|
||||||
|
// decorator overlaping topLayer? make decorator be in front.
|
||||||
|
_full.Exclude( _serverwin->fWinBorder->fDecFull );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user