Fixed indents
@@ -146,6 +146,9 @@ impl LayoutTree {
/// tree until either a view is found or the workspace is (in which case
/// it set the active container to the root container of the workspace)
///
+ /// If there are siblings, the chosen node is the one with the lowest
+ /// active count.
+ ///
/// If there is a fullscreen container in this workspace, that is focused on next,
/// with the active path updated accordingly.
pub fn focus_on_next_container(&mut self, mut parent_ix: NodeIndex) {
@@ -167,7 +170,6 @@ impl LayoutTree {
},
_ => {}
}
- // TODO Change this algorithm when we improve the pathing system
match self.tree[last_ix] {
Container::View { handle, .. } => {
handle.focus();
@@ -179,6 +181,7 @@ impl LayoutTree {
},
_ => {}
}
+ // TODO Change this algorithm when we improve the pathing system
while self.tree.node_type(parent_ix)
.expect("Node not part of the tree") != ContainerType::Workspace {
if let Ok(view_ix) = self.tree.descendant_of_type(parent_ix,
