summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-09-09 19:12:20 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-09-09 19:12:20 +0200
commiteb180ed52ee12784ec35213aa89413114a94297e (patch)
tree47f8008fd2cb2eeb7959aedd8cbd4d68932f613d /src/core.py
parentff6f829e8d382da6261790f8535002e2da393ec3 (diff)
downloadpoezio-eb180ed52ee12784ec35213aa89413114a94297e.tar.gz
poezio-eb180ed52ee12784ec35213aa89413114a94297e.tar.bz2
poezio-eb180ed52ee12784ec35213aa89413114a94297e.tar.xz
poezio-eb180ed52ee12784ec35213aa89413114a94297e.zip
Add (optional) lazy resize, and also fix the screen becoming empty when resizing to a lower width.
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py7
1 files changed, 5 insertions, 2 deletions
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):
"""