aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Viewport.cxx
diff options
context:
space:
mode:
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;