Properly set window timeout
This commit is contained in:
@@ -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