Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

refactor(gui): keep the shadow cache as private as its key

RoversX2fd4a4c3cb4b
diff --git a/wezterm-gui/src/glyphcache.rs b/wezterm-gui/src/glyphcache.rs
index b5a2085c..4db71b2c 100644
--- a/wezterm-gui/src/glyphcache.rs
+++ b/wezterm-gui/src/glyphcache.rs
@@ -661,7 +661,7 @@ pub struct GlyphCache {
pub rotated_svg_icons: HashMap<SizedRotatedSvgIconKey, Sprite>,
/// Blurred rounded-rectangle silhouettes, one per corner radius and
/// blur, drawn as nine slices under elevated surfaces.
- pub shadows: HashMap<crate::ui::shadow::ShadowKey, Sprite>,
+ pub(crate) shadows: HashMap<crate::ui::shadow::ShadowKey, Sprite>,
min_frame_duration: Duration,
}
@@ -1445,7 +1445,7 @@ impl GlyphCache {
Ok(sprite)
}
- pub fn cached_shadow(
+ pub(crate) fn cached_shadow(
&mut self,
key: crate::ui::shadow::ShadowKey,
) -> anyhow::Result<Sprite> {