[Spice-devel] [PATCH] vd_agent: support clipboard/selection-owner model

Arnon Gilboa agilboa at redhat.com
Sun Sep 26 01:12:48 PDT 2010


Windows is not "waiting" for me to render. It just closes the clipboard. 
If we do nothing on receiving WM_RENDERALLFORMATS, the clipboard is 
actually kept empty, because using the delayed-rendering-way we have 
already called EmptyClipboard() in handle_clipboard_grab(). I think 
doing nothing is the right thing here.

Alexander Larsson wrote:
> On Wed, 2010-09-22 at 11:45 +0200, Arnon Gilboa wrote:
>   
>> MSDN is saying: "WM_RENDERALLFORMATS Message is sent to the clipboard 
>> owner before it is destroyed, if the clipboard owner has delayed 
>> rendering one or more clipboard formats. For the content of the 
>> clipboard to remain available to other applications, the clipboard owner 
>> must render data in all the formats it is capable of generating, and 
>> place the data on the clipboard by calling the SetClipboardData function. "
>>
>> When our agent is killed, do we really want to send a REQUEST to the 
>> client? I see no reason to render in this case or keep the clipboard 
>> available for other apps.
>>     
>
> That indeed seems a bit silly. Isn't windows waiting for you to render
> something though? You could just set the data to a zero size block.
>
>   



More information about the Spice-devel mailing list