Fix highlighting of the tiling parents.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38657 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -441,17 +441,17 @@ SATTiling::_HighlightWindows(SATGroup* group, bool highlight)
|
|||||||
const TabList* vTabs = group->VerticalTabs();
|
const TabList* vTabs = group->VerticalTabs();
|
||||||
// height light windows at all four sites
|
// height light windows at all four sites
|
||||||
_SearchHighlightWindow(fFreeAreaLeft, fFreeAreaTop, fFreeAreaBottom, hTabs,
|
_SearchHighlightWindow(fFreeAreaLeft, fFreeAreaTop, fFreeAreaBottom, hTabs,
|
||||||
Corner::kLeftBottom, highlight);
|
fFreeAreaTop ? Corner::kLeftBottom : Corner::kLeftTop, highlight);
|
||||||
|
|
||||||
_SearchHighlightWindow(fFreeAreaTop, fFreeAreaLeft, fFreeAreaRight, vTabs,
|
_SearchHighlightWindow(fFreeAreaTop, fFreeAreaLeft, fFreeAreaRight, vTabs,
|
||||||
Corner::kRightTop, highlight);
|
fFreeAreaLeft ? Corner::kRightTop : Corner::kLeftTop, highlight);
|
||||||
|
|
||||||
_SearchHighlightWindow(fFreeAreaRight, fFreeAreaTop, fFreeAreaBottom, hTabs,
|
_SearchHighlightWindow(fFreeAreaRight, fFreeAreaTop, fFreeAreaBottom, hTabs,
|
||||||
Corner::kRightBottom, highlight);
|
fFreeAreaTop ? Corner::kRightBottom : Corner::kRightTop, highlight);
|
||||||
|
|
||||||
_SearchHighlightWindow(fFreeAreaBottom, fFreeAreaLeft, fFreeAreaRight,
|
_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) {
|
for (; index < orthTabs->CountItems() && index >= 0; index += searchDir) {
|
||||||
Tab* orthTab = orthTabs->ItemAt(index);
|
Tab* orthTab = orthTabs->ItemAt(index);
|
||||||
|
if (orthTab == endOrthTab)
|
||||||
|
break;
|
||||||
Crossing* crossing = tab->FindCrossing(orthTab);
|
Crossing* crossing = tab->FindCrossing(orthTab);
|
||||||
if (!crossing)
|
if (!crossing)
|
||||||
continue;
|
continue;
|
||||||
if (orthTab == endOrthTab)
|
|
||||||
break;
|
|
||||||
Corner* corner = crossing->GetCorner(areaCorner);
|
Corner* corner = crossing->GetCorner(areaCorner);
|
||||||
if (corner->windowArea)
|
if (corner->windowArea)
|
||||||
_HighlightWindows(corner->windowArea, highlight);
|
_HighlightWindows(corner->windowArea, highlight);
|
||||||
|
|||||||
Reference in New Issue
Block a user