diff options
-rw-r--r-- | src/gui.py | 3 | ||||
-rw-r--r-- | src/window.py | 6 |
2 files changed, 4 insertions, 5 deletions
@@ -472,7 +472,6 @@ class Gui(object): A subscription changed, or we received a roster item after a roster request, etc """ - # debug('Roster Update: \n%s\n\n' % iq) for item in iq.findall('{jabber:iq:roster}query/{jabber:iq:roster}item'): jid = item.attrib['jid'] contact = self.roster.get_contact_by_jid(jid) @@ -587,6 +586,7 @@ class Gui(object): """ self.current_tab().set_color_state(theme.COLOR_TAB_CURRENT) self.current_tab().refresh(self.tabs, self.information_buffer, self.roster) + self.doupdate() def open_new_room(self, room, nick, focus=True): """ @@ -1337,4 +1337,5 @@ class Gui(object): self.doupdate() def doupdate(self): + self.current_tab().just_before_refresh() curses.doupdate() diff --git a/src/window.py b/src/window.py index 64db72ae..c8a05625 100644 --- a/src/window.py +++ b/src/window.py @@ -876,7 +876,7 @@ class Input(Win): with g_lock: self.clear_text() self.addstr(self.text[self.line_pos:self.line_pos+self.width-1]) - # self.win.chgat(0, self.pos, 1, curses.A_REVERSE) + self.addstr(0, self.pos, '') # WTF, this works but .move() doesn't... self._refresh() def refresh(self): @@ -891,9 +891,7 @@ class Input(Win): """ move the cursor at the current pos """ - from common import debug - debug('ALLO') - self._win.move(0, self.pos) + return class VerticalSeparator(Win): """ |