config: allow disabling the built-in bar
This commit is contained in:
parent
224f5380fe
commit
08e7e01d0e
16 changed files with 156 additions and 14 deletions
|
|
@ -814,8 +814,13 @@ impl ContainerNode {
|
|||
let abs_y = self.abs_y1.get();
|
||||
for (i, child) in self.children.iter().enumerate() {
|
||||
let rect = child.title_rect.get();
|
||||
if self.toplevel_data.visible.get() {
|
||||
self.state.damage(rect.move_(abs_x, abs_y));
|
||||
if self.toplevel_data.visible.get() && !mono && split != ContainerSplit::Horizontal {
|
||||
self.state.damage(Rect::new_sized_unchecked(
|
||||
abs_x,
|
||||
abs_y + rect.y1(),
|
||||
cwidth,
|
||||
rect.height() + 1,
|
||||
));
|
||||
}
|
||||
if i > 0 {
|
||||
let rect = if mono {
|
||||
|
|
@ -852,6 +857,10 @@ impl ContainerNode {
|
|||
rd.underline_rects
|
||||
.push(Rect::new_sized(0, th, cwidth, 1).unwrap());
|
||||
}
|
||||
if self.toplevel_data.visible.get() && (mono || split == ContainerSplit::Horizontal) {
|
||||
self.state
|
||||
.damage(Rect::new_sized_unchecked(abs_x, abs_y, cwidth, th + 1));
|
||||
}
|
||||
rd.titles.remove_if(|_, v| v.is_empty());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue