Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

John Tura3733b8f60ef
diff --git a/crates/gpui/src/platform/blade/blade_renderer.rs b/crates/gpui/src/platform/blade/blade_renderer.rs
index feef6e4c70d..bfcb21d5f9d 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,