summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-15 15:20:34 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-15 15:20:34 +0100
commit68f784e5c233c4f9f8f3a02e99584f1b77fbec9b (patch)
tree8f5f825b79bdbb8f2292723152fbbd513ad94481 /src/core.py
parent85d645b7d27a940c262d0a1e333c61754877155e (diff)
downloadpoezio-68f784e5c233c4f9f8f3a02e99584f1b77fbec9b.tar.gz
poezio-68f784e5c233c4f9f8f3a02e99584f1b77fbec9b.tar.bz2
poezio-68f784e5c233c4f9f8f3a02e99584f1b77fbec9b.tar.xz
poezio-68f784e5c233c4f9f8f3a02e99584f1b77fbec9b.zip
Make the resize faster by resizing each tab
only at its next refresh
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 98d2a7fa..4e837e4d 100644
--- a/src/core.py
+++ b/src/core.py
@@ -691,7 +691,10 @@ class Core(object):
"""
with resize_lock:
for tab in self.tabs:
- tab.resize()
+ # Each tab will be resized the next
+ # time it will be refresh()'ed
+ # Making the resize process faster
+ tab.need_resize = True
self.refresh_window()
def main_loop(self):