diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-01-05 10:25:54 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-01-05 10:25:54 +0100 |
commit | d6612d8d42a9bc7c17fe17fe91862d6cfb577741 (patch) | |
tree | a24a53d39945200dcbb11d1ba70d386902403c57 /common/rfb/SConnection.cxx | |
parent | 513cb8bc9414d8132bd9fd51b0713e17a6c3c4a2 (diff) | |
download | tigervnc-d6612d8d42a9bc7c17fe17fe91862d6cfb577741.tar.gz tigervnc-d6612d8d42a9bc7c17fe17fe91862d6cfb577741.zip |
Add debug logging for ignored clipboard events
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r-- | common/rfb/SConnection.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx index d44ff786..683d29b6 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx @@ -327,10 +327,14 @@ void SConnection::clientCutText(const char* str) void SConnection::handleClipboardRequest(rdr::U32 flags) { - if (!(flags & rfb::clipboardUTF8)) + if (!(flags & rfb::clipboardUTF8)) { + vlog.debug("Ignoring clipboard request for unsupported formats 0x%x", flags); return; - if (!hasLocalClipboard) + } + if (!hasLocalClipboard) { + vlog.debug("Ignoring unexpected clipboard request"); return; + } handleClipboardRequest(); } @@ -357,8 +361,10 @@ void SConnection::handleClipboardProvide(rdr::U32 flags, const size_t* lengths, const rdr::U8* const* data) { - if (!(flags & rfb::clipboardUTF8)) + if (!(flags & rfb::clipboardUTF8)) { + vlog.debug("Ignoring clipboard provide with unsupported formats 0x%x", flags); return; + } strFree(clientClipboard); clientClipboard = NULL; |