]> source.dussan.org Git - tigervnc.git/commitdiff
The old Unix viewer put the RFB clipboard data both in CLIPBOARD and PRIMARY.
authorPierre Ossman <ossman@cendio.se>
Wed, 7 Sep 2011 09:01:20 +0000 (09:01 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 7 Sep 2011 09:01:20 +0000 (09:01 +0000)
Make sure the new one does the same.

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

vncviewer/CConn.cxx

index d69cd4e1dfc62f8ead04dc8578ab91944866df39..4e741276602d6058d5eeb43c3172594b68c3d5ba 100644 (file)
@@ -369,6 +369,9 @@ void CConn::serverCutText(const char* str, rdr::U32 len)
 
   vlog.debug("Got clipboard data: '%s'", buffer);
 
+  // RFB doesn't have separate selection and clipboard concepts, so we
+  // dump the data into both variants.
+  Fl::copy(buffer, ret, 0);
   Fl::copy(buffer, ret, 1);
 
   delete [] buffer;