aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/VNCServerST.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/rfb/VNCServerST.cxx')
-rw-r--r--common/rfb/VNCServerST.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/rfb/VNCServerST.cxx b/common/rfb/VNCServerST.cxx
index 39cdde1f..fcc93a4e 100644
--- a/common/rfb/VNCServerST.cxx
+++ b/common/rfb/VNCServerST.cxx
@@ -338,8 +338,10 @@ void VNCServerST::setScreenLayout(const ScreenSet& layout)
void VNCServerST::requestClipboard()
{
- if (clipboardClient == NULL)
+ if (clipboardClient == NULL) {
+ slog.debug("Got request for client clipboard but no client currently owns the clipboard");
return;
+ }
clipboardClient->requestClipboardOrClose();
}
@@ -348,9 +350,6 @@ void VNCServerST::announceClipboard(bool available)
{
std::list<VNCSConnectionST*>::iterator ci, ci_next;
- if (available)
- clipboardClient = NULL;
-
clipboardRequestors.clear();
for (ci = clients.begin(); ci != clients.end(); ci = ci_next) {