diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-08-05 17:57:09 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-08-31 17:25:14 +0400 |
commit | c98c50de7c4de5f90e978b54b400480689eb2455 (patch) | |
tree | 44d91518c76ab9996d1427b05b340ce5a817011e /ui/vdagent.c | |
parent | 3b99bb4c3ae2cdc445defa243988ceebc7a8378b (diff) | |
download | qemu-c98c50de7c4de5f90e978b54b400480689eb2455.zip qemu-c98c50de7c4de5f90e978b54b400480689eb2455.tar.gz qemu-c98c50de7c4de5f90e978b54b400480689eb2455.tar.bz2 |
ui/vdagent: use qemu_clipboard_peer_release helper
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>
Diffstat (limited to 'ui/vdagent.c')
-rw-r--r-- | ui/vdagent.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/ui/vdagent.c b/ui/vdagent.c index 3620642..99ba346 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) |