From ba90b55b1311fd07b904619e6be35ca833a27642 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 19 Dec 2025 12:18:20 -0500 Subject: [PATCH] Revert the window "hiding" attempt --- crates/zed/src/visual_test_runner.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/zed/src/visual_test_runner.rs b/crates/zed/src/visual_test_runner.rs index e23dbf4b831c357443c33329bd3911b0396263b0..f1eab7985550ede4f6058bb39c3bbf5e835592c3 100644 --- a/crates/zed/src/visual_test_runner.rs +++ b/crates/zed/src/visual_test_runner.rs @@ -95,9 +95,12 @@ fn main() { // Open a real Zed workspace window let window_size = size(px(1280.0), px(800.0)); - // Position window offscreen so it's invisible but still rendered by the compositor + // TODO: We'd like to hide this window during tests, but macOS prevents windows + // from being positioned fully offscreen. The proper fix is to implement direct + // texture capture (reading pixels from Metal texture instead of using ScreenCaptureKit). + // See docs/direct-texture-capture-implementation.md for details. let bounds = Bounds { - origin: point(px(-10000.0), px(-10000.0)), + origin: point(px(100.0), px(100.0)), size: window_size, };