summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/curses/gui-curses-bar.c')
-rw-r--r--src/gui/curses/gui-curses-bar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/curses/gui-curses-bar.c b/src/gui/curses/gui-curses-bar.c
index 3d2027480..96d150f63 100644
--- a/src/gui/curses/gui-curses-bar.c
+++ b/src/gui/curses/gui-curses-bar.c
@@ -1022,8 +1022,11 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
}
else
{
- gui_bar_window_set_current_size (bar_window->bar, 1);
- gui_bar_window_recreate_bar_windows (bar_window->bar);
+ if (gui_bar_window_get_current_size (bar_window) != 1)
+ {
+ gui_bar_window_set_current_size (bar_window->bar, 1);
+ gui_bar_window_recreate_bar_windows (bar_window->bar);
+ }
gui_window_clear (bar_window->win_bar,
CONFIG_COLOR(bar_window->bar->color_bg));
}