Properly set window timeout
This commit is contained in:
1 parent
a6612d3d8e
commit
5d12c9d544
2 files changed
+3
-5
No files matched your search
@@ -126,11 +126,7 @@ void Scrollpad::clear()
|
||||
{
|
||||
m_real_height = m_height;
|
||||
m_buffer.clear();
|
||||
werase(m_window);
|
||||
delwin(m_window);
|
||||
m_window = newpad(m_height, m_width);
|
||||
setTimeout(m_window_timeout);
|
||||
setColor(m_color);
|
||||
Window::clear();
|
||||
}
|
||||
|
||||
const std::string &Scrollpad::buffer()
|
||||
|
||||
@@ -483,6 +483,7 @@ Window::Window(size_t startx, size_t starty, size_t width, size_t height,
|
||||
}
|
||||
|
||||
m_window = newpad(m_height, m_width);
|
||||
wtimeout(m_window, 0);
|
||||
|
||||
setBaseColor(color);
|
||||
setColor(m_base_color);
|
||||
@@ -719,6 +720,7 @@ void Window::refresh()
|
||||
void Window::clear()
|
||||
{
|
||||
werase(m_window);
|
||||
setColor(m_base_color);
|
||||
}
|
||||
|
||||
void Window::bold(bool bold_state) const
|
||||
|
||||
Reference in new issue
Block a user