From f4e7b4a70507784a4de9ed736443f9bef9790de1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 4 Aug 2001 02:31:36 +0000 Subject: 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 --- src/fe-text/statusbar.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fe-text') diff --git a/src/fe-text/statusbar.c b/src/fe-text/statusbar.c index b3b7cd60..b8de3ff6 100644 --- a/src/fe-text/statusbar.c +++ b/src/fe-text/statusbar.c @@ -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) -- cgit v1.2.3