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:
Clemens Zeidler
2011-08-01 01:03:06 +00:00
parent 2dae355ecb
commit bd545a2af2
+3 -1
View File
@@ -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) {