Parent borders are not drawn if child is floating
@@ -689,13 +689,20 @@ impl Tree {
let node_ix = try!(self.lookup_handle(view.into()).ok()
.and_then(|id| self.0.tree.lookup_id(id))
.ok_or_else(||TreeError::ViewNotFound(view)));
+ let floating = {
+ let container = &mut self.0.tree[node_ix];
+ container.render_borders();
+ container.floating()
+ };
self.0.tree[node_ix].render_borders();
// Render parent container too, if applicable.
let mut parent_ix = self.0.tree.parent_of(node_ix)?;
+ if ! floating {
while self.0.tree[parent_ix].get_type() != ContainerType::Workspace {
self.0.tree[parent_ix].render_borders();
parent_ix = self.0.tree.parent_of(parent_ix)?
}
+ }
Ok(())
}
}
