mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Always set the newly created entry active. Currently we don't support multiple, but if the entry moves between statusbars sometimes we first create new one then destroy the old one and there's no active then..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1906 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1c9a8ab897
commit
8a5cda6167
@ -286,8 +286,7 @@ static void item_input(SBAR_ITEM_REC *item, int get_size_only)
|
|||||||
if (rec == NULL) {
|
if (rec == NULL) {
|
||||||
rec = gui_entry_create(item->xpos, item->bar->real_ypos,
|
rec = gui_entry_create(item->xpos, item->bar->real_ypos,
|
||||||
item->size);
|
item->size);
|
||||||
if (active_entry == NULL)
|
gui_entry_set_active(rec);
|
||||||
gui_entry_set_active(rec);
|
|
||||||
g_hash_table_insert(input_entries, item, rec);
|
g_hash_table_insert(input_entries, item, rec);
|
||||||
} else {
|
} else {
|
||||||
gui_entry_move(rec, item->xpos, item->bar->real_ypos,
|
gui_entry_move(rec, item->xpos, item->bar->real_ypos,
|
||||||
|
Loading…
Reference in New Issue
Block a user