From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel <qemu-devel@nongnu.org>, "Hoffmann, Gerd" <kraxel@redhat.com>
Subject: Re: [PATCH v2 00/13] Clipboard fixes (for 6.1?)
Date: Wed, 21 Jul 2021 15:38:33 +0400 [thread overview]
Message-ID: <CAMxuvaz8H6-td5FLRigkE8DgK8usE-s9sMSWLtp66u5ufdM7sw@mail.gmail.com> (raw)
In-Reply-To: <20210721084139.1124779-1-marcandre.lureau@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1915 bytes --]
Hi Gerd,
On Wed, Jul 21, 2021 at 12:41 PM <marcandre.lureau@redhat.com> wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Hi,
>
> Here is a few fixes I have collected while working on clipboard-related
> code.
>
> There are some obvious code improvements/fixes, and better handling of
> release &
> unregister to avoid dangling pointers and improve user experience.
>
> v2:
> - replaced "ui/vdagent: unregister clipboard peer on finalize" with
> "ui/vdagent: disconnect handlers and reset state on finalize" patch.
> - added "ui/vdagent: reset outbuf on disconnect"
> - commit message tweaks
>
>
I am still improving this series, but any feedback is welcome.
I am wondering if we should add a migration blocker for 6.1. VNC clients
are reconnected on migration, but migration shouldn't be visible to guest
agent. What do you think?
thanks
> Marc-André Lureau (13):
> ui/vdagent: fix leak on error path
> ui/vdagent: remove copy-pasta comment
> ui/gtk-clipboard: use existing macros
> ui/gtk-clipboard: fix clipboard enum typo
> ui/clipboard: add helper to retrieve current clipboard
> ui/clipboard: release owned grabs on unregister
> ui/vdagent: disconnect handlers and reset state on finalize
> ui/vdagent: reset outbuf on disconnect
> ui/vdagent: split clipboard recv message handling
> ui/vdagent: use qemu_clipboard_info helper
> ui/gtk-clipboard: use qemu_clipboard_info helper
> ui/vdagent: send release when no clipboard owner
> ui/gtk-clipboard: emit release clipboard events
>
> include/ui/clipboard.h | 11 ++
> include/ui/gtk.h | 1 -
> ui/clipboard.c | 24 +++++
> ui/gtk-clipboard.c | 30 +++---
> ui/vdagent.c | 225 +++++++++++++++++++++++++----------------
> 5 files changed, 188 insertions(+), 103 deletions(-)
>
> --
> 2.32.0.264.g75ae10bc75
>
>
>
[-- Attachment #2: Type: text/html, Size: 2674 bytes --]
prev parent reply other threads:[~2021-07-21 11:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-21 8:41 [PATCH v2 00/13] Clipboard fixes (for 6.1?) marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 01/13] ui/vdagent: fix leak on error path marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 02/13] ui/vdagent: remove copy-pasta comment marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 03/13] ui/gtk-clipboard: use existing macros marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 04/13] ui/gtk-clipboard: fix clipboard enum typo marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 05/13] ui/clipboard: add helper to retrieve current clipboard marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 06/13] ui/clipboard: release owned grabs on unregister marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 07/13] ui/vdagent: disconnect handlers and reset state on finalize marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 08/13] ui/vdagent: reset outbuf on disconnect marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 09/13] ui/vdagent: split clipboard recv message handling marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 10/13] ui/vdagent: use qemu_clipboard_info helper marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 11/13] ui/gtk-clipboard: " marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 12/13] ui/vdagent: send release when no clipboard owner marcandre.lureau
2021-07-21 8:41 ` [PATCH v2 13/13] ui/gtk-clipboard: emit release clipboard events marcandre.lureau
2021-07-21 11:38 ` Marc-André Lureau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMxuvaz8H6-td5FLRigkE8DgK8usE-s9sMSWLtp66u5ufdM7sw@mail.gmail.com \
--to=marcandre.lureau@redhat.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).