]> source.dussan.org Git - tigervnc.git/commitdiff
Respect SendClipboard setting
authorPierre Ossman <ossman@cendio.se>
Mon, 2 Jan 2017 14:16:58 +0000 (15:16 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 2 Jan 2017 14:16:58 +0000 (15:16 +0100)
vncviewer/Viewport.cxx

index a12f783b07ea47e024e02411a10e1d3d95175e23..1e4ee1aa23abb0d0b323ea2e08822e915bade14c 100644 (file)
@@ -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;