diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-07-17 21:15:39 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-07-22 12:47:28 +0400 |
| commit | 63a5d4de589330f0a1c46f59a4b7336adda4635b (patch) | |
| tree | 5aab25ca0c8305786a0d63928fa06307e327ff85 /ui/vdagent.c | |
| parent | 81c88ce0b84db9395463901d79f7e87e9210527a (diff) | |
| download | focaccia-qemu-63a5d4de589330f0a1c46f59a4b7336adda4635b.tar.gz focaccia-qemu-63a5d4de589330f0a1c46f59a4b7336adda4635b.zip | |
ui/vdagent: notify clipboard peers of serial reset
Since we reset the serial counters, peers should also be reset to be sync. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240717171541.201525-4-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui/vdagent.c')
| -rw-r--r-- | ui/vdagent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/vdagent.c b/ui/vdagent.c index cb74739bc4..2a4b3574b1 100644 --- a/ui/vdagent.c +++ b/ui/vdagent.c @@ -720,6 +720,8 @@ static void vdagent_chr_recv_caps(VDAgentChardev *vd, VDAgentMessage *msg) memset(vd->last_serial, 0, sizeof(vd->last_serial)); if (have_clipboard(vd) && vd->cbpeer.notifier.notify == NULL) { + qemu_clipboard_reset_serial(); + vd->cbpeer.name = "vdagent"; vd->cbpeer.notifier.notify = vdagent_clipboard_notify; vd->cbpeer.request = vdagent_clipboard_request; |