qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 7/7] ui/gtk: add clipboard support


From: Marc-André Lureau
Subject: Re: [PATCH v2 7/7] ui/gtk: add clipboard support
Date: Wed, 24 Mar 2021 17:26:24 +0400

Hi

On Wed, Mar 24, 2021 at 4:57 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
  Hi,

> I fail to see how that works, imagine the other end is the same code (qemu
> in the guest), it will take clipboard ownership and it is in a endless
> loop, isn't it?

Notifications on guest-triggered clipboard updates will not be sent back
to the guest, exactly to avoid that kind of loop.  See self_update
checks in vdagent_clipboard_notify().  gtk and vnc notify callbacks have
simliar checks for simliar reasons ;)


That means the other side may have wrong clipboard expectations. It may ask for what was previously an image and that will fails. This is not a big issue per se if error returns are handled correctly all the way. It may also have an impact on some UI aspects (since some actions shold become unactive when clipboard has some content or another etc)

--
Marc-André Lureau

reply via email to

[Prev in Thread] Current Thread [Next in Thread]