Use transparent clear color for opaque windows on Linux (#46281)

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
This commit is contained in:
John Tur authored and GitHub committed 2026-01-07 19:39:57 +00:00
1 parent 72bec6324d
commit 1b74b6e71b
1 file changed
+1 -5
@@ -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,