diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-09-07 09:01:20 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-09-07 09:01:20 +0000 |
commit | cf2443c23ea1bd85ddb1b6678d5d3c207e71e341 (patch) | |
tree | 5c18ddc05d6845d789cf7c25c36345c052c12805 /vncviewer | |
parent | 9990eec9b9aabacedff6e3c24b757533807222dc (diff) | |
download | tigervnc-cf2443c23ea1bd85ddb1b6678d5d3c207e71e341.tar.gz tigervnc-cf2443c23ea1bd85ddb1b6678d5d3c207e71e341.zip |
The old Unix viewer put the RFB clipboard data both in CLIPBOARD and PRIMARY.
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
Diffstat (limited to 'vncviewer')
-rw-r--r-- | vncviewer/CConn.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx index d69cd4e1..4e741276 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -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; |