mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
core: fix refresh bug when switching buffer
This commit is contained in:
@@ -252,6 +252,15 @@ gui_main_refreshs ()
|
||||
gui_window_refresh_needed = 0;
|
||||
}
|
||||
|
||||
/* refresh bars if needed */
|
||||
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
|
||||
{
|
||||
if (ptr_bar->bar_refresh_needed)
|
||||
{
|
||||
gui_bar_draw (ptr_bar);
|
||||
}
|
||||
}
|
||||
|
||||
/* refresh windows if needed */
|
||||
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
|
||||
{
|
||||
|
||||
@@ -1505,6 +1505,7 @@ void
|
||||
gui_window_refresh_windows ()
|
||||
{
|
||||
struct t_gui_window *ptr_win, *old_current_window;
|
||||
struct t_gui_bar_window *ptr_bar_win;
|
||||
struct t_gui_bar *ptr_bar;
|
||||
int add_bottom, add_top, add_left, add_right;
|
||||
|
||||
@@ -1539,6 +1540,12 @@ gui_window_refresh_windows ()
|
||||
|
||||
for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window)
|
||||
{
|
||||
gui_window_calculate_pos_size (ptr_win);
|
||||
for (ptr_bar_win = ptr_win->bar_windows; ptr_bar_win;
|
||||
ptr_bar_win = ptr_bar_win->next_bar_window)
|
||||
{
|
||||
gui_bar_window_create_win (ptr_bar_win);
|
||||
}
|
||||
ptr_win->refresh_needed = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user