summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core.py b/src/core.py
index 62011994..5b390c84 100644
--- a/src/core.py
+++ b/src/core.py
@@ -535,15 +535,15 @@ class Core(object):
This is to avoid multiple unnecessary software resizes (this
can be heavy on resource on slow computers or networks)
"""
- # with resize_lock:
- # if self.resize_timer:
- # # a recent terminal resize occured.
- # # Cancel the programmed software resize
- # self.resize_timer.cancel()
- # # add the new timer
- # self.resize_timer = threading.Timer(0.15, self.resize_window)
- # self.resize_timer.start()
- self.resize_window()
+ with resize_lock:
+ if self.resize_timer:
+ # a recent terminal resize occured.
+ # Cancel the programmed software resize
+ self.resize_timer.cancel()
+ # add the new timer
+ self.resize_timer = threading.Timer(0.1, self.resize_window)
+ self.resize_timer.start()
+ # self.resize_window()
def resize_window(self):
"""