Fix refresh bug with bars when items are empty and size is zero (auto)
This commit is contained in:
parent
aca489be93
commit
1b726d3c71
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -1682,8 +1682,6 @@ gui_window_refresh_screen ()
|
||||
refresh ();
|
||||
gui_window_refresh_windows ();
|
||||
}
|
||||
|
||||
gui_window_refresh_needed = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user