diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-01 20:14:16 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-01 20:14:16 +0200 |
commit | bc9f00961fa7aaca8d55204ca4fa04abb0f77c8c (patch) | |
tree | d0c18cfbaa92b49795063f2ef4b4ee25a8fc297d /client | |
parent | a2d645ffe3fa23e8c57950987c93c0fe8822238b (diff) | |
download | spice-bc9f00961fa7aaca8d55204ca4fa04abb0f77c8c.tar.gz spice-bc9f00961fa7aaca8d55204ca4fa04abb0f77c8c.tar.xz spice-bc9f00961fa7aaca8d55204ca4fa04abb0f77c8c.zip |
Respond to clipb request with an unsupported type with data with a none type
Currently we send a VD_AGENT_CLIPBOARD_RELEASE when we receive a
VD_AGENT_CLIPBOARD_REQUEST with a type which we do not support. This is not
correct, as this means given up clipboard ownership while we may be able
to answer requests with different types. The correct response is to
nack the request by sending a VD_AGENT_CLIPBOARD (data) message with a type
of VD_AGENT_CLIPBOARD_NONE.
Diffstat (limited to 'client')
-rw-r--r-- | client/red_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/red_client.cpp b/client/red_client.cpp index e3519006..99e79a50 100644 --- a/client/red_client.cpp +++ b/client/red_client.cpp @@ -1095,7 +1095,7 @@ void RedClient::dispatch_agent_message(VDAgentMessage* msg, void* data) break; case VD_AGENT_CLIPBOARD_REQUEST: if (!Platform::request_clipboard_notification(((VDAgentClipboardRequest*)data)->type)) { - send_agent_clipboard_message(VD_AGENT_CLIPBOARD_RELEASE); + on_clipboard_notify(VD_AGENT_CLIPBOARD_NONE, NULL, 0); } break; case VD_AGENT_CLIPBOARD_RELEASE: |