From c732cb560dc554a3089aaecbd114ea632596c3db Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 15 Aug 2011 23:29:38 +0000 Subject: [PATCH] Reset the tab region when switching to a tab less look. At least partially fixes #7919. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42636 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/decorator/DefaultDecorator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/servers/app/decorator/DefaultDecorator.cpp b/src/servers/app/decorator/DefaultDecorator.cpp index e6058a4cdf..ea931514c4 100644 --- a/src/servers/app/decorator/DefaultDecorator.cpp +++ b/src/servers/app/decorator/DefaultDecorator.cpp @@ -438,6 +438,11 @@ DefaultDecorator::_DoLayout() return; } else { // no tab + for (int32 i = 0; i < fTabList.CountItems(); i++) { + Decorator::Tab* tab = fTabList.ItemAt(i); + tab->tabRect.Set(0.0, 0.0, -1.0, -1.0); + } + fTabsRegion.MakeEmpty(); fTitleBarRect.Set(0.0, 0.0, -1.0, -1.0); } }