From eb180ed52ee12784ec35213aa89413114a94297e Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 9 Sep 2011 19:12:20 +0200 Subject: Add (optional) lazy resize, and also fix the screen becoming empty when resizing to a lower width. --- src/core.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core.py b/src/core.py index bda47aa3..e25be58f 100644 --- a/src/core.py +++ b/src/core.py @@ -677,8 +677,11 @@ class Core(object): self.resize_global_information_win() with resize_lock: for tab in self.tabs: - tab.resize() - self.refresh_window() + if config.get('lazy_resize', 'true') == 'true': + tab.need_resize = True + else: + tab.resize() + self.full_screen_redraw() def read_keyboard(self): """ -- cgit v1.2.3