diff options
Diffstat (limited to 'ui/clipboard.c')
-rw-r--r-- | ui/clipboard.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/clipboard.c b/ui/clipboard.c index 56c1450..490c322 100644 --- a/ui/clipboard.c +++ b/ui/clipboard.c @@ -16,6 +16,14 @@ void qemu_clipboard_peer_unregister(QemuClipboardPeer *peer) notifier_remove(&peer->update); } +bool qemu_clipboard_peer_owns(QemuClipboardPeer *peer, + QemuClipboardSelection selection) +{ + QemuClipboardInfo *info = qemu_clipboard_info(selection); + + return info && info->owner == peer; +} + void qemu_clipboard_update(QemuClipboardInfo *info) { g_autoptr(QemuClipboardInfo) old = NULL; |