From bc9f00961fa7aaca8d55204ca4fa04abb0f77c8c Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 1 Oct 2010 20:14:16 +0200 Subject: 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. --- client/red_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/red_client.cpp') 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: -- cgit