diff --git a/src/interface/bin/mod.rs b/src/interface/bin/mod.rs index 2abc934..74b6306 100644 --- a/src/interface/bin/mod.rs +++ b/src/interface/bin/mod.rs @@ -1118,6 +1118,10 @@ impl Bin { let sibling_style = sibling.style_copy(); + if sibling_style.position != Some(BinPosition::Floating) { + continue; + } + let mut sibling_width = match sibling_style.width { Some(some) => some, None => { diff --git a/src/render/mod.rs b/src/render/mod.rs index adadbf1..394f767 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -570,7 +570,7 @@ impl Renderer { let mut metrics_state_op = self .window .renderer_metrics_enabled() - .then(|| MetricsState::new()); + .then(MetricsState::new); 'render_loop: loop { assert!(update_after_acquire_wait.is_none()); diff --git a/src/render/worker.rs b/src/render/worker.rs index f14ad89..8a17fd7 100644 --- a/src/render/worker.rs +++ b/src/render/worker.rs @@ -601,7 +601,7 @@ pub fn spawn( } let mut update_recv_count = 0; - let mut total_ovd_metrics_op = metrics_enabled.then(|| OVDPerfMetrics::default()); + let mut total_ovd_metrics_op = metrics_enabled.then(OVDPerfMetrics::default); // TODO: what happens if a thread panics before all data is received? while update_recv_count < update_count {