Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

also force the window title to rerender when reattaching #3898

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions zellij-server/src/panes/tiled_panes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
4 changes: 4 additions & 0 deletions zellij-server/src/tab/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ impl Tab {
);
}
self.set_force_render();
self.set_force_window_title_update();
Ok(())
}

Expand Down Expand Up @@ -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
Expand Down