From 213cffcf3eba0ff4afb7a2a6f7eb9d4c4193929c Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 23 Oct 2026 03:13:09 +0200 Subject: [PATCH] Benchmark report: the screen read again at the end of the run Under Wayland the title screen can come before the window is on a screen, so the report's hardware.display stayed empty (seen end to end in a headless sway). Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/benchmark.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/horizon-client/src/benchmark.rs b/crates/horizon-client/src/benchmark.rs index 00e3ade71..bcb94589c 100644 --- a/crates/horizon-client/src/benchmark.rs +++ b/crates/horizon-client/src/benchmark.rs @@ -239,6 +239,10 @@ fn run(control: &Control, setup: Setup) -> Result { let status = control.status(); let renderer = &status["renderer"]; + // On Wayland the window is on a screen only once it has been shown: ask again. + if report.hardware.display.is_none() { + report.hardware.display = serde_json::from_value(status["display"].clone()).ok(); + } let c = &mut report.conditions; c.scenario = Some(setup.scenario.clone()); c.seed = Some(SEED.to_string());