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:
parent
2939be5ffc
commit
fa4c486b69
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user