On 27/03/2023 01:14, Ankush Patel wrote:
> Thanks for your response.
>
> I believe the first method I need to implement is *VNCServerST::handleClipboardAnnounce(VNCSConnectionST*
> client, bool available) *
> Placing breakpoints on this method, I can see that the *available* argument
> is always *false.*
>
> Based on the information you provided, the code in
> *unix/xserver/hw/vnc/vncSelection.c* in the *void
> vncHandleClipboardAnnounce(int available)* function
> grabs ownership of the clipboard only when *available* is set to true. Is
> there a reason the *available* argument is always set to false in
> x0vncserver?
>
It should be the same behaviour as in Xvnc, so it should be set to true
whenever the client makes the clipboard available. I'm afraid you'll
have to debug further if you are seeing some issue with that.