From caefa8675923fedca7e1dd279bdfd01fa8b62884 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Wed, 15 Sep 2010 05:24:54 +0000 Subject: [PATCH] Fix highlighting of the tiling parents. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38657 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/decorators/SATDecorator/Tiling.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/add-ons/decorators/SATDecorator/Tiling.cpp b/src/add-ons/decorators/SATDecorator/Tiling.cpp index d613bb6cba..acd4b91282 100644 --- a/src/add-ons/decorators/SATDecorator/Tiling.cpp +++ b/src/add-ons/decorators/SATDecorator/Tiling.cpp @@ -441,17 +441,17 @@ SATTiling::_HighlightWindows(SATGroup* group, bool highlight) 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 @@ SATTiling::_SearchHighlightWindow(Tab* tab, Tab* firstOrthTab, 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);