This is required to open vimb with hidden inputbox in case 'input-autohide' is
enabled. Else the inputbox is marked as hidden but becomes visible again on
call of gtk_widget_show_all().
     autocmd_init();
 #endif
     map_init();
+
+    /* make sure the main window and all its contents are visible */
+    gtk_widget_show_all(gui->window);
+
     read_config();
 
     /* initially apply input style */
 
     setup_signals();
 
-    /* make sure the main window and all its contents are visible */
-    gtk_widget_show_all(gui->window);
     if (vb.config.kioskmode) {
         WebKitWebSettings *setting = webkit_web_view_get_settings(gui->webview);