From 9c8d577737cf523adce0306207dbb8a33b8aa63e Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 5 May 2014 19:57:20 +0200 Subject: Revert "Fix #2072 (only resize a tab if the size changed since the last display)" This reverts commit b46f0f5e266c321632738ca40839759486b47a7e. Conflicts: src/tabs/muclisttab.py Doing this made the unresized elements refresh in the old subwins, causing glitches and weirdness. And anyway, the only problematic element is the TextWin (rebuilding all the lines of a buffer is expensive), but it already checks if the width changed. --- src/tabs/basetabs.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/tabs/basetabs.py') diff --git a/src/tabs/basetabs.py b/src/tabs/basetabs.py index d9225468..c1281e62 100644 --- a/src/tabs/basetabs.py +++ b/src/tabs/basetabs.py @@ -96,10 +96,10 @@ class Tab(object): self._state = 'normal' self._prev_state = None + self.need_resize = False self.key_func = {} # each tab should add their keys in there # and use them in on_input self.commands = {} # and their own commands - self._saved_size = (-1, -1) @property @@ -185,13 +185,6 @@ class Tab(object): elif not self._prev_state: self._state = 'normal' - def push_size(self): - self._saved_size = (self.height, self.width) - - @property - def need_resize(self): - return self._saved_size != (self.height, self.width) - @staticmethod def resize(scr): with g_lock: -- cgit v1.2.3