From 2b822687bea2784abe1cb310e2e7a69b4312cfef Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 4 Mar 2018 17:24:19 -0800 Subject: [PATCH] resize all tabs when resizing the window --- src/xwindows/xwin.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/xwindows/xwin.rs b/src/xwindows/xwin.rs index 8525f9902..b73e44d4e 100644 --- a/src/xwindows/xwin.rs +++ b/src/xwindows/xwin.rs @@ -297,16 +297,13 @@ impl TerminalWindow { // so optimistically pretend that we have that extra pixel! let rows = ((height as usize + 1) / self.cell_height) as u16; let cols = ((width as usize + 1) / self.cell_width) as u16; - self.tabs - .get_active() - .pty - .borrow_mut() - .resize(rows, cols, width, height)?; - self.tabs - .get_active() - .terminal - .borrow_mut() - .resize(rows as usize, cols as usize); + + for mut tab in &mut self.tabs.tabs { + tab.pty.borrow_mut().resize(rows, cols, width, height)?; + tab.terminal + .borrow_mut() + .resize(rows as usize, cols as usize); + } Ok(true) } else {