aboutsummaryrefslogtreecommitdiff
path: root/src/server/client_shell_graphics.rs
diff options
context:
space:
mode:
authorEric Yue <jiacheng.yue@foxmail.com>2026-09-28 03:58:55 +0800
committerGitHub <noreply@github.com>2026-09-27 21:58:55 +0200
commit87c08c6b7a1dbd250fa3a8e9424a47b3176f99eb (patch)
treedcf4bcdfdb4a3a58069ce9773dda9ac75b2cc527 /src/server/client_shell_graphics.rs
parent6502492fbaa0ac0e5883208a20e3d99584319611 (diff)
perf: skip frame clones for unchanged retained graphics (#4672)
Diffstat (limited to 'src/server/client_shell_graphics.rs')
-rw-r--r--src/server/client_shell_graphics.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/client_shell_graphics.rs b/src/server/client_shell_graphics.rs
index d0af03a9..8499b964 100644
--- a/src/server/client_shell_graphics.rs
+++ b/src/server/client_shell_graphics.rs
@@ -3,7 +3,7 @@ use crate::protocol::{ClientShellPopupSurface, SurfaceGraphicsScene};
pub(crate) fn collect_retained(
app: &crate::app::App,
- surface: &crate::protocol::PaneSurfaceFrame,
+ panes: &[crate::protocol::PaneSurfacePane],
target: crate::ui::TabSurfaceTarget,
cell_size: crate::kitty_graphics::HostCellSize,
delivered: &DeliveryCache,
@@ -12,8 +12,7 @@ pub(crate) fn collect_retained(
let rect = |rect: crate::protocol::SurfaceRect| {
ratatui::layout::Rect::new(rect.x, rect.y, rect.width, rect.height)
};
- let pane_infos = surface
- .panes
+ let pane_infos = panes
.iter()
.map(|pane| {
let (workspace_index, id) = app.parse_pane_id(&pane.pane_id)?;