mirror of
https://github.com/mborgerson/xemu.git
synced 2026-05-06 11:33:18 +00:00
ui/clipboard: release owned grabs on unregister
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-9-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
@ -13,6 +13,12 @@ void qemu_clipboard_peer_register(QemuClipboardPeer *peer)
|
||||
|
||||
void qemu_clipboard_peer_unregister(QemuClipboardPeer *peer)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < QEMU_CLIPBOARD_SELECTION__COUNT; i++) {
|
||||
qemu_clipboard_peer_release(peer, i);
|
||||
}
|
||||
|
||||
notifier_remove(&peer->update);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user