From 2571c6ff03c3f8f9f64b5060b4930c7a15182efd Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Wed, 7 Jan 2026 20:57:45 +0000 Subject: [PATCH] Use transparent clear color for opaque windows on Linux (#46281) (cherry-pick to preview) (#46288) Cherry-pick of #46281 to preview ---- https://github.com/zed-industries/zed/pull/45423 changed the Blade renderer to use a white clear color for "opaque" windows. This interacts poorly with our client-side decorations, causing the shadows around the window to be drawn over a white background. Release Notes: - N/A Co-authored-by: John Tur --- crates/gpui/src/platform/blade/blade_renderer.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/gpui/src/platform/blade/blade_renderer.rs b/crates/gpui/src/platform/blade/blade_renderer.rs index feef6e4c70d8c251afd7b50cfca330bb8fbf1fcb..bfcb21d5f9db205180ee89d626381615f5265020 100644 --- a/crates/gpui/src/platform/blade/blade_renderer.rs +++ b/crates/gpui/src/platform/blade/blade_renderer.rs @@ -709,11 +709,7 @@ impl BladeRenderer { gpu::RenderTargetSet { colors: &[gpu::RenderTarget { view: frame.texture_view(), - init_op: gpu::InitOp::Clear(if self.surface_config.transparent { - gpu::TextureColor::TransparentBlack - } else { - gpu::TextureColor::White - }), + init_op: gpu::InitOp::Clear(gpu::TextureColor::TransparentBlack), finish_op: gpu::FinishOp::Store, }], depth_stencil: None,