From fb439b5c2ae93e0d42a59cf8900a17cbb72214f6 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 28 Oct 2001 18:40:12 +0000 Subject: Redrawing fixes - irssi should now rarely redraw stuff uselessly in screen. Most of the code now just marks the window/statusbar/etc. as dirty, and lets the dirty-checker handle it later. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1926 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/statusbar-items.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/fe-text/statusbar-items.c') diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 70547daf..da485d5b 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -276,23 +276,23 @@ static void item_input(SBAR_ITEM_REC *item, int get_size_only) { GUI_ENTRY_REC *rec; - if (get_size_only) { - item->min_size = 2+term_width/10; - item->max_size = term_width; - return; - } - rec = g_hash_table_lookup(input_entries, item); if (rec == NULL) { rec = gui_entry_create(item->xpos, item->bar->real_ypos, item->size); gui_entry_set_active(rec); g_hash_table_insert(input_entries, item, rec); - } else { - gui_entry_move(rec, item->xpos, item->bar->real_ypos, - item->size); - gui_entry_redraw(rec); /* FIXME: this is only necessary with ^L.. */ } + + if (get_size_only) { + item->min_size = 2+term_width/10; + item->max_size = term_width; + return; + } + + gui_entry_move(rec, item->xpos, item->bar->real_ypos, + item->size); + gui_entry_redraw(rec); /* FIXME: this is only necessary with ^L.. */ } static void sig_statusbar_item_destroyed(SBAR_ITEM_REC *item) -- cgit v1.2.3