diff --git a/mux/src/tab.rs b/mux/src/tab.rs index 89a256878..8c0b056ef 100644 --- a/mux/src/tab.rs +++ b/mux/src/tab.rs @@ -1,7 +1,7 @@ use crate::domain::DomainId; use crate::pane::*; use crate::renderable::StableCursorPosition; -use crate::{Mux, WindowId}; +use crate::{Mux, MuxNotification, WindowId}; use bintree::PathBranch; use config::configuration; use config::keyassignment::PaneDirection; @@ -1417,6 +1417,10 @@ impl TabInner { if let Some(panel_idx) = self.get_pane_direction(direction, false) { self.set_active_idx(panel_idx); } + let mux = Mux::get(); + if let Some(window_id) = mux.window_containing_tab(self.id) { + mux.notify(MuxNotification::WindowInvalidated(window_id)); + } } fn get_pane_direction(&mut self, direction: PaneDirection, ignore_zoom: bool) -> Option {