Fix refresh bug with bars when items are empty and size is zero (auto)

This commit is contained in:
Sebastien Helleu 2008-09-02 10:38:06 +02:00
parent aca489be93
commit 1b726d3c71
3 changed files with 8 additions and 4 deletions

View File

@ -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));
}

View File

@ -295,7 +295,10 @@ gui_main_loop ()
/* refresh window if needed */
if (gui_window_refresh_needed)
{
gui_window_refresh_screen ();
gui_window_refresh_needed = 0;
}
/* wait for keyboard or network activity */
FD_ZERO (&read_fds);

View File

@ -1682,8 +1682,6 @@ gui_window_refresh_screen ()
refresh ();
gui_window_refresh_windows ();
}
gui_window_refresh_needed = 0;
}
/*