]> source.dussan.org Git - tigervnc.git/commitdiff
Forgot to respect the AcceptClipboard option in the
authorPierre Ossman <ossman@cendio.se>
Fri, 24 May 2013 10:47:27 +0000 (10:47 +0000)
committerPierre Ossman <ossman@cendio.se>
Fri, 24 May 2013 10:47:27 +0000 (10:47 +0000)
new FLTK based viewer. Patch by Matt McCutchen.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5112 3789f03b-4d11-0410-bbf8-ca57d06f2519

vncviewer/CConn.cxx

index 97e35ba0a052c4b077ce7b1b2279d6c0b39f1d30..4aeb03f1d4d8c809b60eaaac58e2781b42489736 100644 (file)
@@ -350,6 +350,9 @@ void CConn::serverCutText(const char* str, rdr::U32 len)
   char *buffer;
   int size, ret;
 
+  if (!acceptClipboard)
+    return;
+
   size = fl_utf8froma(NULL, 0, str, len);
   if (size <= 0)
     return;