TabDecorator: fix invalidation when removing a tab.
Fixes #12085. Change-Id: I346e39ba4dc6befe97f33f8ff409a6ac84ae8585 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2609 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
09af7c139b
commit
7362b02b0e
@@ -793,10 +793,11 @@ TabDecorator::_AddTab(DesktopSettings& settings, int32 index,
|
|||||||
bool
|
bool
|
||||||
TabDecorator::_RemoveTab(int32 index, BRegion* updateRegion)
|
TabDecorator::_RemoveTab(int32 index, BRegion* updateRegion)
|
||||||
{
|
{
|
||||||
BRect oldTitle = fTitleBarRect;
|
BRect oldRect = TabRect(index) | TabRect(CountTabs() - 1);
|
||||||
|
// Get a rect of all the tabs to the right - they will all be moved
|
||||||
_DoLayout();
|
_DoLayout();
|
||||||
if (updateRegion != NULL) {
|
if (updateRegion != NULL) {
|
||||||
updateRegion->Include(oldTitle);
|
updateRegion->Include(oldRect);
|
||||||
updateRegion->Include(fTitleBarRect);
|
updateRegion->Include(fTitleBarRect);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user