aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-01-02 15:16:58 +0100
committerPierre Ossman <ossman@cendio.se>2017-01-02 15:16:58 +0100
commita432b58232cbe576b7776b674eb8da368c47ce7a (patch)
treed602104f125c3325964ae46d4526c6a48dbd50bb /vncviewer/Viewport.cxx
parentb7f1d7ad840dbbd83cbcc1e68b4bcd7769731c56 (diff)
downloadtigervnc-a432b58232cbe576b7776b674eb8da368c47ce7a.tar.gz
tigervnc-a432b58232cbe576b7776b674eb8da368c47ce7a.zip
Respect SendClipboard setting
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r--vncviewer/Viewport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vncviewer/Viewport.cxx b/vncviewer/Viewport.cxx
index a12f783b..1e4ee1aa 100644
--- a/vncviewer/Viewport.cxx
+++ b/vncviewer/Viewport.cxx
@@ -403,6 +403,9 @@ void Viewport::handleClipboardChange(int source, void *data)
assert(self);
+ if (!sendClipboard)
+ return;
+
#if !defined(WIN32) && !defined(__APPLE__)
if (!sendPrimary && (source == 0))
return;