Set the top layer tab when detaching a window from the stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2084,8 +2084,10 @@ Window::DetachFromWindowStack(bool ownStackNeeded)
|
||||
|
||||
BRegion dirty;
|
||||
::Decorator* decorator = fCurrentStack->Decorator();
|
||||
if (decorator != NULL)
|
||||
if (decorator != NULL) {
|
||||
decorator->RemoveTab(index, &dirty);
|
||||
decorator->SetTopTap(fCurrentStack->LayerOrder().CountItems() - 1);
|
||||
}
|
||||
|
||||
Window* remainingTop = fCurrentStack->TopLayerWindow();
|
||||
if (remainingTop != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user