Only show sendPrimary on X11 platforms
Primary selection is inherently a X11 concept so there is no point
showing the settings related to it on other platforms.
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index 7cce1cd..9a9b9fd 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -122,10 +122,12 @@
true);
BoolParameter sendClipboard("SendClipboard",
"Send clipboard changes to the server", true);
+#if !defined(WIN32) && !defined(__APPLE__)
BoolParameter sendPrimary("SendPrimary",
"Send the primary selection and cut buffer to the "
"server as well as the clipboard selection",
true);
+#endif
StringParameter menuKey("MenuKey", "The key which brings up the popup menu",
"F8");
@@ -165,7 +167,9 @@
&shared,
&acceptClipboard,
&sendClipboard,
+#if !defined(WIN32) && !defined(__APPLE__)
&sendPrimary,
+#endif
&menuKey,
&fullscreenSystemKeys
};