diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-01-02 15:16:58 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-01-02 15:16:58 +0100 |
commit | a432b58232cbe576b7776b674eb8da368c47ce7a (patch) | |
tree | d602104f125c3325964ae46d4526c6a48dbd50bb /vncviewer/Viewport.cxx | |
parent | b7f1d7ad840dbbd83cbcc1e68b4bcd7769731c56 (diff) | |
download | tigervnc-a432b58232cbe576b7776b674eb8da368c47ce7a.tar.gz tigervnc-a432b58232cbe576b7776b674eb8da368c47ce7a.zip |
Respect SendClipboard setting
Diffstat (limited to 'vncviewer/Viewport.cxx')
-rw-r--r-- | vncviewer/Viewport.cxx | 3 |
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; |