diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-01-05 10:24:18 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-01-05 10:24:18 +0100 |
commit | b89261358261522eb9696c87ad4d841878d17070 (patch) | |
tree | 75e17a1579318e204a159c954d7dda75369a29f0 /common/rfb/CConnection.cxx | |
parent | 07935033b538e18ca428588c33dab67d70e79c5b (diff) | |
download | tigervnc-b89261358261522eb9696c87ad4d841878d17070.tar.gz tigervnc-b89261358261522eb9696c87ad4d841878d17070.zip |
Handle clipboard peek with missing data
The peer expects a response, so we should also be able to respond that
there is no clipboard data currently available.
Diffstat (limited to 'common/rfb/CConnection.cxx')
-rw-r--r-- | common/rfb/CConnection.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx index 538d90a8..6632efa8 100644 --- a/common/rfb/CConnection.cxx +++ b/common/rfb/CConnection.cxx @@ -504,10 +504,8 @@ void CConnection::handleClipboardRequest(rdr::U32 flags) void CConnection::handleClipboardPeek(rdr::U32 flags) { - if (!hasLocalClipboard) - return; if (server.clipboardFlags() & rfb::clipboardNotify) - writer()->writeClipboardNotify(rfb::clipboardUTF8); + writer()->writeClipboardNotify(hasLocalClipboard ? rfb::clipboardUTF8 : 0); } void CConnection::handleClipboardNotify(rdr::U32 flags) |