aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/vncExtInit.cc
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2016-01-12 18:40:23 +0100
committerPierre Ossman <ossman@cendio.se>2016-02-05 10:34:36 +0100
commit6f6a6c0d90c5ad9ceeff8d24299cdfc215955947 (patch)
tree23133df4a14b04106ee70a329f139daaf6e4af80 /unix/xserver/hw/vnc/vncExtInit.cc
parentc62e70c5b34de478127a130384b8958ccf232504 (diff)
downloadtigervnc-6f6a6c0d90c5ad9ceeff8d24299cdfc215955947.tar.gz
tigervnc-6f6a6c0d90c5ad9ceeff8d24299cdfc215955947.zip
Move server to client clipboard out of vncconfig
Also handle clipboard transactions from the server to the client directly in the server without the help of vncconfig.
Diffstat (limited to 'unix/xserver/hw/vnc/vncExtInit.cc')
-rw-r--r--unix/xserver/hw/vnc/vncExtInit.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc
index 32a93f03..fda2562e 100644
--- a/unix/xserver/hw/vnc/vncExtInit.cc
+++ b/unix/xserver/hw/vnc/vncExtInit.cc
@@ -70,6 +70,9 @@ rfb::StringParameter interface("interface",
rfb::BoolParameter avoidShiftNumLock("AvoidShiftNumLock",
"Avoid fake Shift presses for keys affected by NumLock.",
true);
+rfb::BoolParameter sendPrimary("SendPrimary",
+ "Send the PRIMARY as well as the CLIPBOARD selection",
+ true);
static PixelFormat vncGetPixelFormat(int scrIdx)
{
@@ -245,6 +248,11 @@ int vncGetAvoidShiftNumLock(void)
return (bool)avoidShiftNumLock;
}
+int vncGetSendPrimary(void)
+{
+ return (bool)sendPrimary;
+}
+
void vncUpdateDesktopName(void)
{
for (int scr = 0; scr < vncGetScreenCount(); scr++) {