aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-05 17:57:14 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-31 17:25:14 +0400
commit8038c5b64649b2d8ed9bf3dd7fac4bb2536524c6 (patch)
treec71d89aff94dd2b955506253d9f964e227bb1ad9 /ui
parent314bf50086d8b7d057f980cb1cd6ed5c87640980 (diff)
downloadqemu-8038c5b64649b2d8ed9bf3dd7fac4bb2536524c6.zip
qemu-8038c5b64649b2d8ed9bf3dd7fac4bb2536524c6.tar.gz
qemu-8038c5b64649b2d8ed9bf3dd7fac4bb2536524c6.tar.bz2
ui/gtk-clipboard: emit release clipboard events
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-18-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk-clipboard.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk-clipboard.c b/ui/gtk-clipboard.c
index 4e4b3c5..35b7a2c 100644
--- a/ui/gtk-clipboard.c
+++ b/ui/gtk-clipboard.c
@@ -163,6 +163,8 @@ static void gd_owner_change(GtkClipboard *clipboard,
qemu_clipboard_info_unref(info);
break;
default:
+ qemu_clipboard_peer_release(&gd->cbpeer, s);
+ gd->cbowner[s] = false;
break;
}
}