[haiku-commits] r42549 - haiku/trunk/src/servers/app

Author: czeidler
Date: 2011-08-03 00:42:57 +0200 (Wed, 03 Aug 2011)
New Revision: 42549
Changeset: https://dev.haiku-os.org/changeset/42549

Modified:
   haiku/trunk/src/servers/app/Window.cpp
Log:
Set the top most window look when switching between windows in a stack.



Modified: haiku/trunk/src/servers/app/Window.cpp
===================================================================
--- haiku/trunk/src/servers/app/Window.cpp      2011-08-02 22:27:12 UTC (rev 
42548)
+++ haiku/trunk/src/servers/app/Window.cpp      2011-08-02 22:42:57 UTC (rev 
42549)
@@ -2148,6 +2148,7 @@
        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 @@
        if (decorator == NULL)
                return false;
        decorator->SetDrawingEngine(fDrawingEngine);
+       DesktopSettings settings(fDesktop);
+       SetLook(Look(), NULL);
        decorator->SetTopTap(PositionInStack());
        return fCurrentStack->MoveToTopLayer(this);
 }


Other related posts:

  • » [haiku-commits] r42549 - haiku/trunk/src/servers/app - clemens . zeidler