// RFB doesn't have separate selection and clipboard concepts, so we
// dump the data into both variants.
+#if !defined(WIN32) && !defined(__APPLE__)
if (setPrimary)
Fl::copy(buffer, ret, 0);
+#endif
Fl::copy(buffer, ret, 1);
delete [] buffer;
{
if (pendingServerCutText) {
size_t len = strlen(pendingServerCutText);
+#if !defined(WIN32) && !defined(__APPLE__)
if (setPrimary)
Fl::copy(pendingServerCutText, len, 0);
+#endif
Fl::copy(pendingServerCutText, len, 1);
}
if (pendingClientCutText) {
BoolParameter acceptClipboard("AcceptClipboard",
"Accept clipboard changes from the server",
true);
-BoolParameter setPrimary("SetPrimary",
- "Set the primary selection as well as the "
- "clipboard selection", true);
BoolParameter sendClipboard("SendClipboard",
"Send clipboard changes to the server", true);
#if !defined(WIN32) && !defined(__APPLE__)
+BoolParameter setPrimary("SetPrimary",
+ "Set the primary selection as well as the "
+ "clipboard selection", true);
BoolParameter sendPrimary("SendPrimary",
"Send the primary selection to the "
"server as well as the clipboard selection",