diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-09-17 14:15:31 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-09-17 14:15:31 +0200 |
commit | a8537481acd482a1c24f1ac0a3a4200316c2828e (patch) | |
tree | 3d0191ef2caad69a4388d928afffb804743f7dec /src/tabs.py | |
parent | 24848892256f77edbdcbfcc9c4f90586876b3334 (diff) | |
download | poezio-a8537481acd482a1c24f1ac0a3a4200316c2828e.tar.gz poezio-a8537481acd482a1c24f1ac0a3a4200316c2828e.tar.bz2 poezio-a8537481acd482a1c24f1ac0a3a4200316c2828e.tar.xz poezio-a8537481acd482a1c24f1ac0a3a4200316c2828e.zip |
Refresh only once, not at every refresh() call, after we resized the screen once.
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py index 6c819138..257b7bd5 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -680,6 +680,7 @@ class MucTab(ChatTab): """ if not self.visible: return + self.need_resize = False text_width = (self.width//10)*9 self.topic_win.resize(1, self.width, 0, 0) self.v_separator.resize(self.height-3, 1, 1, 9*(self.width//10)) @@ -1035,6 +1036,7 @@ class PrivateTab(ChatTab): def resize(self): if self.core.information_win_size >= self.height-3 or not self.visible: return + self.need_resize = False self.text_win.resize(self.height-3-self.core.information_win_size, self.width, 0, 0) self.text_win.rebuild_everything(self._room) self.info_header.resize(1, self.width, self.height-3-self.core.information_win_size, 0) @@ -1184,6 +1186,7 @@ class RosterInfoTab(Tab): def resize(self): if not self.visible: return + self.need_resize = False roster_width = self.width//2 info_width = self.width-roster_width-1 self.v_separator.resize(self.height-2, 1, 0, roster_width) @@ -1540,6 +1543,7 @@ class ConversationTab(ChatTab): def resize(self): if self.core.information_win_size >= self.height-3 or not self.visible: return + self.need_resize = False self.text_win.resize(self.height-4-self.core.information_win_size, self.width, 1, 0) self.text_win.rebuild_everything(self._room) self.upper_bar.resize(1, self.width, 0, 0) @@ -1657,6 +1661,7 @@ class MucListTab(Tab): def resize(self): if not self.visible: return + self.need_resize = False self.upper_message.resize(1, self.width, 0, 0) column_size = {'node-part': (self.width-5)//4, 'name': (self.width-5)//4*3, @@ -1791,6 +1796,7 @@ class SimpleTextTab(Tab): def resize(self): if not self.visible: return + self.need_resize = False self.text_win.resize(self.height-2, self.width, 0, 0) self.input.resize(1, self.width, self.height-1, 0) |