void SConnection::clientCutText(const char* str)
{
+ hasLocalClipboard = false;
+
strFree(clientClipboard);
clientClipboard = NULL;
strFree(clientClipboard);
clientClipboard = NULL;
- if (flags & rfb::clipboardUTF8)
+ if (flags & rfb::clipboardUTF8) {
+ hasLocalClipboard = false;
handleClipboardAnnounce(true);
- else
+ } else {
handleClipboardAnnounce(false);
+ }
}
void SConnection::handleClipboardProvide(rdr::U32 flags,
clientClipboard = convertLF((const char*)data[0], lengths[0]);
+ // FIXME: Should probably verify that this data was actually requested
handleClipboardData(clientClipboard);
}