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 <waddlesplash@gmail.com>
This commit is contained in:
parent
09af7c139b
commit
7362b02b0e
|
@ -793,10 +793,11 @@ TabDecorator::_AddTab(DesktopSettings& settings, int32 index,
|
|||
bool
|
||||
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();
|
||||
if (updateRegion != NULL) {
|
||||
updateRegion->Include(oldTitle);
|
||||
updateRegion->Include(oldRect);
|
||||
updateRegion->Include(fTitleBarRect);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue