This commit is contained in:
fourtf 2020-08-23 17:03:47 +02:00
parent 45a53bf0a4
commit 28a0e4c63c
2 changed files with 7 additions and 7 deletions

View file

@ -241,6 +241,7 @@ void SplitContainer::setSelected(Split *split)
if (Node *node = this->baseNode_.findNodeContainingSplit(split))
{
this->focusSplitRecursive(node);
this->setPreferedTargetRecursive(node);
}
}
@ -331,7 +332,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
else
{
this->focusSplitRecursive(
siblings[it - siblings.begin() - 1].get(), direction);
siblings[it - siblings.begin() - 1].get());
}
}
else
@ -343,7 +344,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
else
{
this->focusSplitRecursive(
siblings[it - siblings.begin() + 1].get(), direction);
siblings[it - siblings.begin() + 1].get());
}
}
}
@ -354,7 +355,7 @@ void SplitContainer::selectSplitRecursive(Node *node, Direction direction)
}
}
void SplitContainer::focusSplitRecursive(Node *node, Direction direction)
void SplitContainer::focusSplitRecursive(Node *node)
{
switch (node->type_)
{
@ -374,12 +375,11 @@ void SplitContainer::focusSplitRecursive(Node *node, Direction direction)
if (it != children.end())
{
this->focusSplitRecursive(it->get(), direction);
this->focusSplitRecursive(it->get());
}
else
{
this->focusSplitRecursive(node->children_.front().get(),
direction);
this->focusSplitRecursive(node->children_.front().get());
}
}
break;

View file

@ -216,7 +216,7 @@ protected:
private:
void layout();
void selectSplitRecursive(Node *node, Direction direction);
void focusSplitRecursive(Node *node, Direction direction);
void focusSplitRecursive(Node *node);
void setPreferedTargetRecursive(Node *node);
void addSplit(Split *split);