viewOnlyCheckbox->value(viewOnly);
acceptClipboardCheckbox->value(acceptClipboard);
sendClipboardCheckbox->value(sendClipboard);
+#if !defined(WIN32) && !defined(__APPLE__)
sendPrimaryCheckbox->value(sendPrimary);
+#endif
systemKeysCheckbox->value(fullscreenSystemKeys);
menuKeyChoice->value(0);
viewOnly.setParam(viewOnlyCheckbox->value());
acceptClipboard.setParam(acceptClipboardCheckbox->value());
sendClipboard.setParam(sendClipboardCheckbox->value());
+#if !defined(WIN32) && !defined(__APPLE__)
sendPrimary.setParam(sendPrimaryCheckbox->value());
+#endif
fullscreenSystemKeys.setParam(systemKeysCheckbox->value());
if (menuKeyChoice->value() == 0)
_("Send clipboard to server")));
ty += CHECK_HEIGHT + TIGHT_MARGIN;
+#if !defined(WIN32) && !defined(__APPLE__)
sendPrimaryCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
CHECK_MIN_WIDTH,
CHECK_HEIGHT,
_("Send primary selection and cut buffer as clipboard")));
ty += CHECK_HEIGHT + TIGHT_MARGIN;
+#endif
systemKeysCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
CHECK_MIN_WIDTH,
Fl_Check_Button *viewOnlyCheckbox;
Fl_Check_Button *acceptClipboardCheckbox;
Fl_Check_Button *sendClipboardCheckbox;
+#if !defined(WIN32) && !defined(__APPLE__)
Fl_Check_Button *sendPrimaryCheckbox;
+#endif
Fl_Check_Button *systemKeysCheckbox;
Fl_Choice *menuKeyChoice;
assert(self);
+#if !defined(WIN32) && !defined(__APPLE__)
if (!sendPrimary && (source == 0))
return;
+#endif
Fl::paste(*self, source);
}
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");
&shared,
&acceptClipboard,
&sendClipboard,
+#if !defined(WIN32) && !defined(__APPLE__)
&sendPrimary,
+#endif
&menuKey,
&fullscreenSystemKeys
};
extern rfb::BoolParameter acceptClipboard;
extern rfb::BoolParameter sendClipboard;
+#if !defined(WIN32) && !defined(__APPLE__)
extern rfb::BoolParameter sendPrimary;
+#endif
extern rfb::StringParameter menuKey;