Move XDesktop specific parameters in to same file
diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx
index 07b3a9c..4a989d3 100644
--- a/unix/x0vncserver/XDesktop.cxx
+++ b/unix/x0vncserver/XDesktop.cxx
@@ -42,8 +42,11 @@
extern const unsigned short code_map_qnum_to_xorgkbd[];
extern const unsigned int code_map_qnum_to_xorgkbd_len;
-extern rfb::BoolParameter useShm;
-extern rfb::BoolParameter rawKeyboard;
+BoolParameter useShm("UseSHM", "Use MIT-SHM extension if available", true);
+BoolParameter rawKeyboard("RawKeyboard",
+ "Send keyboard events straight through and "
+ "avoid mapping them to the current keyboard "
+ "layout", false);
static rfb::LogWriter vlog("XDesktop");
diff --git a/unix/x0vncserver/x0vncserver.cxx b/unix/x0vncserver/x0vncserver.cxx
index 22525d5..c8098f7 100644
--- a/unix/x0vncserver/x0vncserver.cxx
+++ b/unix/x0vncserver/x0vncserver.cxx
@@ -56,7 +56,6 @@
"adjusted to satisfy MaxProcessorUsage setting", 30);
IntParameter maxProcessorUsage("MaxProcessorUsage", "Maximum percentage of "
"CPU time to be consumed", 35);
-BoolParameter useShm("UseSHM", "Use MIT-SHM extension if available", true);
StringParameter displayname("display", "The X display", "");
IntParameter rfbport("rfbport", "TCP port to listen for RFB protocol",5900);
IntParameter queryConnectTimeout("QueryConnectTimeout",
@@ -64,10 +63,6 @@
"rejecting the connection",
10);
StringParameter hostsFile("HostsFile", "File with IP access control rules", "");
-BoolParameter rawKeyboard("RawKeyboard",
- "Send keyboard events straight through and "
- "avoid mapping them to the current keyboard "
- "layout", false);
//
// Allow the main loop terminate itself gracefully on receiving a signal.