diff --git a/config/src/lib.rs b/config/src/lib.rs index f2935a236..129a7977a 100644 --- a/config/src/lib.rs +++ b/config/src/lib.rs @@ -1195,6 +1195,9 @@ pub struct Config { #[serde(default)] pub pane_focus_follows_mouse: bool, + + #[serde(default)] + pub use_alternative_alpha_blending: bool, } impl_lua_conversion!(Config); diff --git a/wezterm-gui/src/termwindow/render.rs b/wezterm-gui/src/termwindow/render.rs index 7fc5ad9f0..43f314f16 100644 --- a/wezterm-gui/src/termwindow/render.rs +++ b/wezterm-gui/src/termwindow/render.rs @@ -543,8 +543,11 @@ impl super::TermWindow { atlas_linear_sampler: atlas_linear_sampler, foreground_text_hsb: foreground_text_hsb, }, - //&blend_but_set_alpha_to_one, - &alpha_blending, + if self.config.use_alternative_alpha_blending { + &blend_but_set_alpha_to_one + } else { + &alpha_blending + }, )?; vb.next_index();