Use transparent clear color for opaque windows on Linux (#46281) (cherry-pick to preview) (#46288)

zed-zippy[bot] and John Tur created

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 <john-tur@outlook.com>

Change summary

crates/gpui/src/platform/blade/blade_renderer.rs | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)

Detailed changes

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,