1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

statusbar_item_redraw() didn't work properly with multiple split windows.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1704 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-08-04 02:31:36 +00:00 committed by cras
parent dcf1bdb82c
commit f4e7b4a705

View File

@ -208,8 +208,14 @@ void statusbar_redraw(STATUSBAR_REC *bar)
void statusbar_item_redraw(SBAR_ITEM_REC *item)
{
WINDOW_REC *old_active_win;
g_return_if_fail(item != NULL);
old_active_win = active_win;
if (item->bar->window != NULL)
active_win = item->bar->window->active;
item->func(item, TRUE);
if (item->max_size != item->size)
statusbar_redraw(item->bar);
@ -217,6 +223,8 @@ void statusbar_item_redraw(SBAR_ITEM_REC *item)
item->func(item, FALSE);
screen_refresh(NULL);
}
active_win = old_active_win;
}
static int get_last_bg(const char *str)