summaryrefslogtreecommitdiff
path: root/src/client.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-24 13:35:46 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-24 13:35:46 +0100
commitfa4c486b69579d34b8eef1537df083d476069d2e (patch)
treee4a313ad1c5bbe1d9bcc6f2249630d9f3dd2f07a /src/client.cc
parent2939be5ffc36f8e28d922ab9330c3e35a9ee8b3e (diff)
Always redraw status when redrawing the main window
That is needed so that on resize the status line does not disappear
Diffstat (limited to 'src/client.cc')
-rw-r--r--src/client.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client.cc b/src/client.cc
index 5bc73c45..74fcd67e 100644
--- a/src/client.cc
+++ b/src/client.cc
@@ -148,11 +148,13 @@ void Client::redraw_ifn()
Window& window = context().window();
UserInterface& ui = context().ui();
- if (window.needs_redraw(context()))
+ const bool needs_redraw = window.needs_redraw(context());
+ if (needs_redraw)
ui.draw(window.update_display_buffer(context()), default_face);
DisplayLine mode_line = generate_mode_line();
- if (m_status_line.atoms() != m_pending_status_line.atoms() or
+ if (needs_redraw or
+ m_status_line.atoms() != m_pending_status_line.atoms() or
mode_line.atoms() != m_mode_line.atoms())
{
m_mode_line = std::move(mode_line);