[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 12/18] ui/vdagent: use qemu_clipboard_peer_release helper
From: |
marcandre . lureau |
Subject: |
[PULL 12/18] ui/vdagent: use qemu_clipboard_peer_release helper |
Date: |
Tue, 31 Aug 2021 17:31:26 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210805135715.857938-13-marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/vdagent.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/ui/vdagent.c b/ui/vdagent.c
index 362064213c..99ba34646f 100644
--- a/ui/vdagent.c
+++ b/ui/vdagent.c
@@ -507,13 +507,7 @@ static void vdagent_clipboard_recv_data(VDAgentChardev
*vd, uint8_t s, uint32_t
static void vdagent_clipboard_recv_release(VDAgentChardev *vd, uint8_t s)
{
- g_autoptr(QemuClipboardInfo) info = NULL;
-
- if (vd->cbinfo[s] && vd->cbinfo[s]->owner == &vd->cbpeer) {
- /* set empty clipboard info */
- info = qemu_clipboard_info_new(NULL, s);
- qemu_clipboard_update(info);
- }
+ qemu_clipboard_peer_release(&vd->cbpeer, s);
}
static void vdagent_chr_recv_clipboard(VDAgentChardev *vd, VDAgentMessage *msg)
--
2.33.0.rc2
- [PULL 02/18] ui/vdagent: remove copy-pasta comment, (continued)
- [PULL 02/18] ui/vdagent: remove copy-pasta comment, marcandre . lureau, 2021/08/31
- [PULL 03/18] ui/gtk-clipboard: use existing macros, marcandre . lureau, 2021/08/31
- [PULL 04/18] ui/gtk-clipboard: fix clipboard enum typo, marcandre . lureau, 2021/08/31
- [PULL 05/18] ui/clipboard: add helper to retrieve current clipboard, marcandre . lureau, 2021/08/31
- [PULL 06/18] ui/clipboard: add qemu_clipboard_peer_owns() helper, marcandre . lureau, 2021/08/31
- [PULL 07/18] ui/clipboard: add qemu_clipboard_peer_release() helper, marcandre . lureau, 2021/08/31
- [PULL 08/18] ui/clipboard: release owned grabs on unregister, marcandre . lureau, 2021/08/31
- [PULL 09/18] ui/vdagent: disconnect handlers and reset state on finalize, marcandre . lureau, 2021/08/31
- [PULL 10/18] ui/vdagent: reset outbuf on disconnect, marcandre . lureau, 2021/08/31
- [PULL 11/18] ui/vdagent: split clipboard recv message handling, marcandre . lureau, 2021/08/31
- [PULL 12/18] ui/vdagent: use qemu_clipboard_peer_release helper,
marcandre . lureau <=
- [PULL 13/18] ui/vdagent: use qemu_clipboard_info helper, marcandre . lureau, 2021/08/31
- [PULL 14/18] ui/vdagent: send empty clipboard when unhandled, marcandre . lureau, 2021/08/31
- [PULL 15/18] ui/gtk-clipboard: use qemu_clipboard_info helper, marcandre . lureau, 2021/08/31
- [PULL 16/18] ui/vdagent: send release when no clipboard owner, marcandre . lureau, 2021/08/31
- [PULL 17/18] ui/gtk-clipboard: emit release clipboard events, marcandre . lureau, 2021/08/31
- [PULL 18/18] ui/vdagent: add a migration blocker, marcandre . lureau, 2021/08/31
- Re: [PULL 00/18] UI/clipboard fixes, Peter Maydell, 2021/08/31