Don't open X11 display too early

We have to wait until we've passed the command line arguments or
we might overlook a -display argument.
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 0ca46af..6701302 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -481,11 +481,6 @@
 
   init_fltk();
 
-#if !defined(WIN32) && !defined(__APPLE__)
-  fl_open_display();
-  XkbSetDetectableAutoRepeat(fl_display, True, NULL);
-#endif
-
   Configuration::enableViewerParams();
 
   /* Load the default parameter settings */
@@ -521,6 +516,11 @@
 
   mkvnchomedir();
 
+#if !defined(WIN32) && !defined(__APPLE__)
+  fl_open_display();
+  XkbSetDetectableAutoRepeat(fl_display, True, NULL);
+#endif
+
   CSecurity::upg = &dlg;
 #ifdef HAVE_GNUTLS
   CSecurityTLS::msg = &dlg;