Fl::arg accepts several arguments which we are not documenting. Also, it accepts a -geometry argument, which clashes with our own -geometry option.tags/v1.8.90
"Send the primary selection to the " | "Send the primary selection to the " | ||||
"server as well as the clipboard selection", | "server as well as the clipboard selection", | ||||
true); | true); | ||||
StringParameter display("display", | |||||
"Specifies the X display on which the VNC viewer window should appear.", | |||||
""); | |||||
#endif | #endif | ||||
StringParameter menuKey("MenuKey", "The key which brings up the popup menu", | StringParameter menuKey("MenuKey", "The key which brings up the popup menu", |
extern rfb::BoolParameter sendClipboard; | extern rfb::BoolParameter sendClipboard; | ||||
#if !defined(WIN32) && !defined(__APPLE__) | #if !defined(WIN32) && !defined(__APPLE__) | ||||
extern rfb::BoolParameter sendPrimary; | extern rfb::BoolParameter sendPrimary; | ||||
extern rfb::StringParameter display; | |||||
#endif | #endif | ||||
extern rfb::StringParameter menuKey; | extern rfb::StringParameter menuKey; |
} | } | ||||
for (int i = 1; i < argc;) { | for (int i = 1; i < argc;) { | ||||
if (Fl::arg(argc, argv, i)) | |||||
continue; | |||||
if (Configuration::setParam(argv[i])) { | if (Configuration::setParam(argv[i])) { | ||||
i++; | i++; | ||||
continue; | continue; | ||||
mkvnchomedir(); | mkvnchomedir(); | ||||
#if !defined(WIN32) && !defined(__APPLE__) | #if !defined(WIN32) && !defined(__APPLE__) | ||||
if (strcmp(display, "") != 0) { | |||||
Fl::display(display); | |||||
} | |||||
fl_open_display(); | fl_open_display(); | ||||
XkbSetDetectableAutoRepeat(fl_display, True, NULL); | XkbSetDetectableAutoRepeat(fl_display, True, NULL); | ||||
#endif | #endif |