diff options
author | Pierre Ossman <ossman@cendio.se> | 2013-05-24 10:47:27 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2013-05-24 10:47:27 +0000 |
commit | 5010488214d3df9fb6dc64484e479451dd3e5c41 (patch) | |
tree | c49acc37a5dbc50d5103e4887fdca25e42c907d8 /vncviewer | |
parent | 2b04fa44a515dd8754e5be83937b5e9e96ef982b (diff) | |
download | tigervnc-5010488214d3df9fb6dc64484e479451dd3e5c41.tar.gz tigervnc-5010488214d3df9fb6dc64484e479451dd3e5c41.zip |
Forgot to respect the AcceptClipboard option in the
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
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 97e35ba0..4aeb03f1 100644 --- a/vncviewer/CConn.cxx +++ b/vncviewer/CConn.cxx @@ -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; |