Set the top most window look when switching between windows in a stack.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42549 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2148,6 +2148,7 @@ Window::AddWindowToStack(Window* window)
|
||||
if (decorator != NULL)
|
||||
decorator->AddTab(window->Title(), position, &dirty);
|
||||
|
||||
window->SetLook(window->Look(), &dirty);
|
||||
fDesktop->RebuildAndRedrawAfterWindowChange(TopLayerStackWindow(), dirty);
|
||||
window->SetFocus(window->IsFocus());
|
||||
return true;
|
||||
@@ -2195,6 +2196,8 @@ Window::MoveToTopStackLayer()
|
||||
if (decorator == NULL)
|
||||
return false;
|
||||
decorator->SetDrawingEngine(fDrawingEngine);
|
||||
DesktopSettings settings(fDesktop);
|
||||
SetLook(Look(), NULL);
|
||||
decorator->SetTopTap(PositionInStack());
|
||||
return fCurrentStack->MoveToTopLayer(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user