If the completion list is displayed before we set the hight, the user might
see the list for a really short time covering the whole webview window before
it's resized to fit into the lower third of the view. The patch moved the
display of the completion list after the list is calculated and the first
entry is marked as active.
/* this prevents the first item to be placed out of view if the completion
* is shown */
- gtk_widget_show_all(comp.win);
while (gtk_events_pending()) {
gtk_main_iteration();
}
comp.active = -1;
completion_next(back);
+ gtk_widget_show_all(comp.win);
+
return true;
}