diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-04 02:31:36 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-04 02:31:36 +0000 |
commit | f4e7b4a70507784a4de9ed736443f9bef9790de1 (patch) | |
tree | 6c5dd74b69d156832852f0783e1691ed7a46edc4 /src/fe-text | |
parent | dcf1bdb82c47e45d45d5fd889fc6fc94644e27bb (diff) | |
download | irssi-f4e7b4a70507784a4de9ed736443f9bef9790de1.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/statusbar.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) |