Add assertion about our assumption that root's children must be outputs

timeout_old
Tassilo Horn 4 years ago
parent 045e8e7411
commit d45f702458
  1. 10
      src/layout.rs

@ -30,6 +30,16 @@ pub fn auto_tile(layout: &config::Layout) {
.unwrap();
for output in &tree.nodes {
println!("output: {:?}", output.name);
// Assert our assumption that all children of the tree's root
// must be outputs.
if output.node_type != s::NodeType::Output {
panic!(
"Child of Root is no Output but a {:?}",
output.node_type
);
}
let output_width = output.rect.width;
let min_window_width = &config_map
.as_ref()

Loading…
Cancel
Save