Author: czeidler Date: 2010-09-15 07:24:54 +0200 (Wed, 15 Sep 2010) New Revision: 38657 Changeset: http://dev.haiku-os.org/changeset/38657 Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/Tiling.cpp Log: Fix highlighting of the tiling parents. Modified: haiku/trunk/src/add-ons/decorators/SATDecorator/Tiling.cpp =================================================================== --- haiku/trunk/src/add-ons/decorators/SATDecorator/Tiling.cpp 2010-09-14 23:33:09 UTC (rev 38656) +++ haiku/trunk/src/add-ons/decorators/SATDecorator/Tiling.cpp 2010-09-15 05:24:54 UTC (rev 38657) @@ -441,17 +441,17 @@ const TabList* vTabs = group->VerticalTabs(); // height light windows at all four sites _SearchHighlightWindow(fFreeAreaLeft, fFreeAreaTop, fFreeAreaBottom, hTabs, - Corner::kLeftBottom, highlight); + fFreeAreaTop ? Corner::kLeftBottom : Corner::kLeftTop, highlight); _SearchHighlightWindow(fFreeAreaTop, fFreeAreaLeft, fFreeAreaRight, vTabs, - Corner::kRightTop, highlight); + fFreeAreaLeft ? Corner::kRightTop : Corner::kLeftTop, highlight); _SearchHighlightWindow(fFreeAreaRight, fFreeAreaTop, fFreeAreaBottom, hTabs, - Corner::kRightBottom, highlight); + fFreeAreaTop ? Corner::kRightBottom : Corner::kRightTop, highlight); _SearchHighlightWindow(fFreeAreaBottom, fFreeAreaLeft, fFreeAreaRight, - vTabs, Corner::kRightBottom, highlight); - + vTabs, fFreeAreaLeft ? Corner::kRightBottom : Corner::kLeftBottom, + highlight); } @@ -485,11 +485,11 @@ for (; index < orthTabs->CountItems() && index >= 0; index += searchDir) { Tab* orthTab = orthTabs->ItemAt(index); + if (orthTab == endOrthTab) + break; Crossing* crossing = tab->FindCrossing(orthTab); if (!crossing) continue; - if (orthTab == endOrthTab) - break; Corner* corner = crossing->GetCorner(areaCorner); if (corner->windowArea) _HighlightWindows(corner->windowArea, highlight);