Always redraw status when redrawing the main window

That is needed so that on resize the status line does not disappear
This commit is contained in:
Maxime Coste 2015-06-24 13:35:46 +01:00
parent 2939be5ffc
commit fa4c486b69

View File

@ -148,11 +148,13 @@ void Client::redraw_ifn()
Window& window = context().window(); Window& window = context().window();
UserInterface& ui = context().ui(); 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); ui.draw(window.update_display_buffer(context()), default_face);
DisplayLine mode_line = generate_mode_line(); 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()) mode_line.atoms() != m_mode_line.atoms())
{ {
m_mode_line = std::move(mode_line); m_mode_line = std::move(mode_line);