summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:47:54 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:47:54 +0000
commit8b1487c3c350468bd5443d4c2a97898784e5760e (patch)
treee38348a49366bce7f222e4c77c4565bb4356e8e7 /src/window.py
parentcceae04061694ce8ff1d5249871c80248f994a6e (diff)
downloadpoezio-8b1487c3c350468bd5443d4c2a97898784e5760e.tar.gz
poezio-8b1487c3c350468bd5443d4c2a97898784e5760e.tar.bz2
poezio-8b1487c3c350468bd5443d4c2a97898784e5760e.tar.xz
poezio-8b1487c3c350468bd5443d4c2a97898784e5760e.zip
fixed #1176 much better when the userlist needs to be refreshed
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.py b/src/window.py
index 301cc68c..196446af 100644
--- a/src/window.py
+++ b/src/window.py
@@ -27,6 +27,7 @@ class Win(object):
def _resize(self, height, width, y, x, parent_win):
self.height, self.width, self.x, self.y = height, width, x, y
self.win = parent_win.subwin(height, width, y, x)
+ self.win.leaveok(1)
def refresh(self):
self.win.noutrefresh()
@@ -216,6 +217,7 @@ class TextWin(object):
newwin = Win(self.height, self.width, self.y, self.x, self.parent_win)
newwin.win.idlok(True)
newwin.win.scrollok(True)
+ newwin.win.leaveok(1)
self.wins[winname] = newwin
def resize(self, height, width, y, x, stdscr, visible):
@@ -232,6 +234,7 @@ class Input(Win):
"""
def __init__(self, height, width, y, x, stdscr, visible):
Win.__init__(self, height, width, y, x, stdscr)
+ self.win.leaveok(0)
self.visible = visible
self.history = []
self.text = u''