mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
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
This commit is contained in:
parent
44b12481d6
commit
fb439b5c2a
16 changed files with 348 additions and 123 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue