From eb0d83e3a8506b7ead59db3b1ee0d98607e6847b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 28 Dec 2024 17:25:01 -0500 Subject: [PATCH] also force the window title to rerender when reattaching --- zellij-server/src/panes/tiled_panes/mod.rs | 3 +++ zellij-server/src/tab/mod.rs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/zellij-server/src/panes/tiled_panes/mod.rs b/zellij-server/src/panes/tiled_panes/mod.rs index f93f3156c3..d82ff51e31 100644 --- a/zellij-server/src/panes/tiled_panes/mod.rs +++ b/zellij-server/src/panes/tiled_panes/mod.rs @@ -659,6 +659,9 @@ impl TiledPanes { } self.reset_boundaries(); } + pub fn set_force_window_title_update(&mut self) { + self.window_title = None; + } pub fn has_active_panes(&self) -> bool { !self.active_panes.is_empty() } diff --git a/zellij-server/src/tab/mod.rs b/zellij-server/src/tab/mod.rs index 3284203cf8..9ae4fdeea2 100644 --- a/zellij-server/src/tab/mod.rs +++ b/zellij-server/src/tab/mod.rs @@ -913,6 +913,7 @@ impl Tab { ); } self.set_force_render(); + self.set_force_window_title_update(); Ok(()) } @@ -2063,6 +2064,9 @@ impl Tab { self.tiled_panes.set_force_render(); self.floating_panes.set_force_render(); } + pub fn set_force_window_title_update(&mut self) { + self.tiled_panes.set_force_window_title_update(); + } pub fn set_should_clear_display_before_rendering(&mut self) { self.should_clear_display_before_rendering = true; self.floating_panes.set_force_render(); // we do this to make sure pinned panes are